2012-08-09 11:44:15 +04:00
|
|
|
|
|
|
|
project(add_definitions_command_with_target_prop)
|
|
|
|
|
|
|
|
add_definitions(-DCMAKE_IS_FUN -DCMAKE_IS=Fun)
|
|
|
|
|
2012-08-22 15:03:56 +04:00
|
|
|
add_executable(add_definitions_command_with_target_prop_executable ../compiletest.cpp)
|
2012-08-09 11:44:15 +04:00
|
|
|
|
|
|
|
set_target_properties(add_definitions_command_with_target_prop_executable PROPERTIES COMPILE_DEFINITIONS CMAKE_IS_="Fun")
|
|
|
|
|
|
|
|
set_property(TARGET add_definitions_command_with_target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun")
|
|
|
|
|
|
|
|
add_definitions(-DCMAKE_IS_FUN)
|
|
|
|
|
|
|
|
set_property(TARGET add_definitions_command_with_target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS=Fun CMAKE_IS_="Fun")
|