zombie-core-utils/CMakeLists.txt
zombie 5d56028dee added case
todo make it so case accepts input from stdin
2021-09-15 09:22:20 -04:00

17 lines
450 B
CMake

cmake_minimum_required(VERSION 3.14)
project (yes)
#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_link_options(-fno-pie -m64 -no-pie -pedantic-errors)
#Make a EXE with cpp and asm files
add_executable(case case.asm)