CMakeLists.txt 665 B

12345678910111213141516
  1. add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun)
  2. add_executable(add_def_cmd_tprop_exe ../compiletest.cpp)
  3. set_target_properties(add_def_cmd_tprop_exe PROPERTIES COMPILE_DEFINITIONS CMAKE_IS_="Fun")
  4. if (NOT NO_SPACES_IN_DEFINE_VALUES)
  5. set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun")
  6. endif()
  7. add_definitions(-DCMAKE_IS_FUN)
  8. set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS=Fun CMAKE_IS_="Fun")
  9. add_definitions(-DBUILD_IS_DEBUG=$<CONFIG:Debug>)
  10. set_property(TARGET add_def_cmd_tprop_exe APPEND PROPERTY COMPILE_DEFINITIONS BUILD_IS_NOT_DEBUG=$<NOT:$<CONFIG:Debug>>)