Update CMakelists
Additional install targets for maps, and reworked dependencies
This commit is contained in:
parent
481153606b
commit
415361ac9c
6 changed files with 47 additions and 8 deletions
|
@ -14,4 +14,15 @@ set( SOURCES
|
|||
# Add the executable
|
||||
add_executable( ttrts-gen ${SOURCES} )
|
||||
|
||||
target_link_libraries( ttrts-gen game )
|
||||
target_link_libraries( ttrts-gen game )
|
||||
|
||||
# Run the gen_usage script to generate our usage header
|
||||
add_custom_target(
|
||||
ttrts-gen-maps ALL
|
||||
${CMAKE_SOURCE_DIR}/../scripts/gen_maps.sh "${CMAKE_CURRENT_BINARY_DIR}/ttrts-gen"
|
||||
)
|
||||
|
||||
add_dependencies(ttrts-gen-maps ${PROJECT_NAME})
|
||||
|
||||
# Installation target
|
||||
install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/maps DESTINATION /usr/share/ttrts )
|
Loading…
Add table
Add a link
Reference in a new issue