summaryrefslogtreecommitdiffstats
path: root/Tests/CustomCommand/GeneratorInExtraDir/CMakeLists.txt
blob: 195a47792a48858a1e99ddc6e798e1bf755c2d86 (plain)
1
2
3
4
5
6
7
8
ADD_DEFINITIONS(-DGENERATOR_EXTERN)

# add the executable which will be used for generating files
ADD_EXECUTABLE(generator_extern ../generator.cxx)
SET_TARGET_PROPERTIES(generator_extern PROPERTIES OUTPUT_NAME the_external_generator)

# add an executable which will be called from ADD_CUSTOM_COMMAND( ... POST_BUILD)
ADD_EXECUTABLE(dummy_generator ../generator.cxx)