summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/NinjaMultiConfig/AutoMocExecutable.cmake
blob: 950e18ecfd115c273c00f78fc399e1ded52bfbc0 (plain)
1
2
3
4
5
6
7
8
9
10
enable_language(C)

add_executable(badmoc badmoc.c)
target_compile_definitions(badmoc PRIVATE "CONFIG=\"$<CONFIG>\"")

add_executable(exe main.c)
set_target_properties(exe PROPERTIES
  AUTOMOC ON
  AUTOMOC_EXECUTABLE $<TARGET_FILE:badmoc>
  )