summaryrefslogtreecommitdiffstats
path: root/Tests/VSMASM/CMakeLists.txt
blob: 49bd24a9601194c931056ea4aeade0354af073ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
cmake_minimum_required(VERSION 3.25) # Enable CMP0141
project(VSMASM C ASM_MASM)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  add_definitions(-DTESTx64)
else()
  add_definitions(-DTESTi386)
  string(APPEND CMAKE_ASM_MASM_FLAGS " /safeseh")
endif()
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_executable(VSMASM main.c foo.asm)
target_compile_definitions(VSMASM PUBLIC DEF_FOO)
target_compile_options(VSMASM PUBLIC -DDEF_BAR)