This also modified the output format for the gamestatefile so AI's will have to be updated
29 lines
No EOL
652 B
CMake
29 lines
No EOL
652 B
CMake
# ====================== ttrts =======================
|
|
# Project name
|
|
project( ttrts )
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
../maths
|
|
../game
|
|
)
|
|
|
|
# Add the sources
|
|
set( SOURCES
|
|
main.cpp
|
|
)
|
|
|
|
# Add the executable
|
|
add_executable( ${PROJECT_NAME} ${SOURCES} )
|
|
|
|
target_link_libraries( ${PROJECT_NAME} game )
|
|
|
|
# Installation target
|
|
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"
|
|
)
|
|
add_dependencies(${PROJECT_NAME} gen_ttrts_usage) |