Update CMakelists

Additional install targets for maps, and reworked dependencies
This commit is contained in:
Marc Di Luzio 2014-12-30 13:24:17 +00:00
parent 481153606b
commit 415361ac9c
6 changed files with 47 additions and 8 deletions

View file

@ -23,7 +23,8 @@ install( TARGETS ${PROJECT_NAME} DESTINATION bin )
# Run the gen_usage script to generate our usage header
add_custom_target(
gen_ttrts_usage
cd ${CMAKE_CURRENT_SOURCE_DIR} && ${CMAKE_SOURCE_DIR}/scripts/gen_usage.sh "${CMAKE_CURRENT_BINARY_DIR}/usage.h"
ttrts-client-usage
cd ${CMAKE_CURRENT_SOURCE_DIR} && ${CMAKE_SOURCE_DIR}/../scripts/gen_usage.sh "${CMAKE_CURRENT_BINARY_DIR}/usage.h"
)
add_dependencies(${PROJECT_NAME} gen_ttrts_usage)
add_dependencies(${PROJECT_NAME} ttrts-client-usage)