summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_custom_command/CommentGenex.cmake
blob: b3931f405a84f7a8c85d7950f445f777e5b6bf82 (plain)
1
2
3
4
5
6
7
8
9
add_custom_target(helper)
set_property(TARGET helper PROPERTY MY_TEXT "lorem ipsum")
add_custom_command(
  OUTPUT out.txt
  COMMAND ${CMAKE_COMMAND} -E echo true
  COMMENT "$<QUOTE>$<TARGET_PROPERTY:helper,MY_TEXT>$<COMMA> $<STREQUAL:foo,bar>$<EQUAL:42,42>$<QUOTE>"
)
set_property(SOURCE out.txt PROPERTY SYMBOLIC 1)
add_custom_target(main ALL DEPENDS out.txt)