summaryrefslogtreecommitdiffstats
path: root/Tests/CompileDefinitions/add_def_cmd_tprop/CMakeLists.txt
blob: 4ef8a093709cd84b2abb0975c29c15951b18af58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun)

add_executable(add_def_cmd_tprop_exe ../compiletest.cpp)

set_target_properties(add_def_cmd_tprop_exe PROPERTIES COMPILE_DEFINITIONS CMAKE_IS_="Fun")

if (NOT NO_SPACES_IN_DEFINE_VALUES)
  set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun")
endif()

add_definitions(-DCMAKE_IS_FUN)

set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS=Fun CMAKE_IS_="Fun")

add_definitions(-DBUILD_IS_DEBUG=$<CONFIG:Debug>)
set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS BUILD_IS_NOT_DEBUG=$<NOT:$<CONFIG:Debug>>)