zombie-core-utils/CMakeLists.txt
zombie b5946dc338 asdasasdasd hpe this works and doesnt fuck everythign up
Merge branch 'master' of ssh://play.qtechofficial.com:9940/ZNG_Zombie-Not-GNU/zombie-core-utils
2021-10-02 20:50:08 -04:00

28 lines
708 B
CMake

cmake_minimum_required(VERSION 3.14)
project (zombie-core-utils)
#set(CMAKE_ASM_NASM_LINK_EXECUTABLE ld)
#Set C++ language version
set(CMAKE_CXX_STANDARD 17)
#Enable ASM provided by NASM
enable_language(ASM_NASM)
set(CMAKE_ASM_NASM_LINK_EXECUTABLE "gcc <CMAKE_ASM_NASM_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
add_compile_options(-g)
add_subdirectory(lib/zombie-lib)
add_link_options(-fno-pie -m64 -no-pie -pedantic-errors)
#Make a EXE with cpp and asm files
add_executable(length length.asm)
add_executable(yes yes.asm)
add_executable(case case.asm)
add_executable(diff diff.asm)
target_link_libraries(length z)
target_link_libraries(case z)
target_link_libraries(diff z)