summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/set_property/Common.cmake
blob: b35948735bca7023e816c187ae00e628de51ea83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro(test_target_property PROP)
  add_custom_target(CustomTarget)
  set_property(TARGET CustomTarget PROPERTY ${PROP} x)
  set_property(TARGET CustomTarget PROPERTY ${PROP})
  set_property(TARGET CustomTarget APPEND PROPERTY ${PROP})
  set_property(TARGET CustomTarget PROPERTY ${PROP} a)
  set_property(TARGET CustomTarget APPEND PROPERTY ${PROP} "")
  set_property(TARGET CustomTarget APPEND PROPERTY ${PROP} b c)
  set_property(TARGET CustomTarget APPEND PROPERTY ${PROP})
  set_property(TARGET CustomTarget APPEND PROPERTY ${PROP} "d;;e")
  get_property(val TARGET CustomTarget PROPERTY ${PROP})
  message(STATUS "Target ${PROP} is '${val}'")
  set_property(TARGET CustomTarget PROPERTY ${PROP})
endmacro()