add wput-based upload rule for App2

This commit is contained in:
Wolfgang Thaller 2012-04-06 00:45:26 +02:00
parent 2194af326d
commit c5e8e4700c

View File

@ -10,7 +10,15 @@ add_executable(Test
target_link_libraries(Test retrocrt)
add_custom_command(
OUTPUT Test.dsk
OUTPUT Test.dsk Test.bin
COMMAND ${MAKE_APPL} -b -c Test
DEPENDS Test)
add_custom_target(TestAPPL ALL DEPENDS Test.dsk)
set(UPLOAD_URL "" CACHE STRING "ftp url to upload to")
if(UPLOAD_URL)
add_custom_target(upload
DEPENDS Test.bin
COMMAND wput -u Test.bin ${UPLOAD_URL}
)
endif()