2021-09-09 18:34:54 -04:00
|
|
|
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>")
|
|
|
|
|
2021-09-18 04:30:57 -04:00
|
|
|
add_compile_options(-g)
|
|
|
|
|
|
|
|
|
2021-09-09 18:34:54 -04:00
|
|
|
add_link_options(-fno-pie -m64 -no-pie -pedantic-errors)
|
|
|
|
|
|
|
|
#Make a EXE with cpp and asm files
|
2021-09-17 09:18:29 -04:00
|
|
|
add_executable(length length.asm)
|
2021-09-18 04:30:57 -04:00
|
|
|
add_executable(yes yes.asm)
|
|
|
|
add_executable(case case.asm)
|
2021-09-18 06:06:05 -04:00
|
|
|
add_executable(diff diff.asm)
|
2021-09-26 14:41:24 -04:00
|
|
|
add_executable(arg arg.asm)
|
2021-09-21 15:35:23 -04:00
|
|
|
|