build SystemExtension example in multiple formats

This commit is contained in:
Wolfgang Thaller 2015-07-18 23:58:41 +02:00
parent 7aaa3174df
commit ee00fe1ec5

View File

@ -7,10 +7,19 @@ add_executable(SystemExtension
set_target_properties(SystemExtension PROPERTIES OUTPUT_NAME SystemExtension.flt)
add_custom_command(
OUTPUT SystemExtension.dsk
OUTPUT SystemExtension.bin SystemExtension.dsk
COMMAND ${REZ} ${CMAKE_CURRENT_SOURCE_DIR}/SystemExtension.r
--copy ${CMAKE_CURRENT_SOURCE_DIR}/Icons.rsrc.bin
-o SystemExtension.bin
-t INIT
COMMAND ${REZ} --copy SystemExtension.bin
-o SystemExtension.dsk
-t INIT
COMMAND ${REZ} --copy SystemExtension.bin
-o SystemExtension
-t INIT
DEPENDS SystemExtension SystemExtension.r Icons.rsrc.bin)
add_custom_target(SystemExtension_INIT ALL DEPENDS SystemExtension.dsk)