cmake/Tests/VSMASM/CMakeLists.txt

13 lines
430 B
CMake
Raw Normal View History

2023-05-23 16:38:00 +02:00
cmake_minimum_required(VERSION 3.25) # Enable CMP0141
2015-04-27 22:25:09 +02:00
project(VSMASM C ASM_MASM)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-DTESTx64)
else()
add_definitions(-DTESTi386)
2016-10-30 18:24:19 +01:00
string(APPEND CMAKE_ASM_MASM_FLAGS " /safeseh")
2015-04-27 22:25:09 +02:00
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_executable(VSMASM main.c foo.asm)
2023-05-23 16:38:00 +02:00
target_compile_definitions(VSMASM PUBLIC DEF_FOO)
target_compile_options(VSMASM PUBLIC -DDEF_BAR)