2012-08-09 11:44:15 +04:00
|
|
|
|
|
|
|
project(target_prop)
|
|
|
|
|
2012-08-22 15:03:56 +04:00
|
|
|
add_executable(target_prop_executable ../compiletest.cpp)
|
2012-08-09 11:44:15 +04:00
|
|
|
|
2012-08-21 13:05:07 +04:00
|
|
|
set_target_properties(target_prop_executable PROPERTIES COMPILE_DEFINITIONS CMAKE_IS_FUN)
|
2012-08-09 11:44:15 +04:00
|
|
|
|
|
|
|
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_REALLY="Very Fun" CMAKE_IS=Fun)
|
|
|
|
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_IS_FUN CMAKE_IS_="Fun")
|
2012-09-21 01:28:09 +04:00
|
|
|
|
|
|
|
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS
|
|
|
|
TEST_GENERATOR_EXPRESSIONS
|
|
|
|
"$<1:CMAKE_IS_DECLARATIVE>"
|
|
|
|
"$<0:GE_NOT_DEFINED>"
|
2012-10-12 19:17:30 +04:00
|
|
|
"$<1:ARGUMENT;LIST>"
|
2012-09-21 01:28:09 +04:00
|
|
|
)
|
2013-03-25 17:43:22 +04:00
|
|
|
|
|
|
|
set_property(TARGET target_prop_executable APPEND PROPERTY COMPILE_DEFINITIONS
|
|
|
|
BUILD_IS_DEBUG=$<CONFIG:Debug>
|
|
|
|
BUILD_IS_NOT_DEBUG=$<NOT:$<CONFIG:Debug>>
|
|
|
|
)
|