2016-09-01 19:04:21 +02:00
|
|
|
find_package(Boost COMPONENTS program_options REQUIRED)
|
2016-08-09 14:03:38 +02:00
|
|
|
|
2016-07-03 00:00:11 +02:00
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY)
|
|
|
|
|
|
|
|
set(RWGAME_SOURCES
|
|
|
|
GitSHA1.h
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
|
|
|
|
|
2014-05-26 06:34:49 +02:00
|
|
|
main.cpp
|
2014-08-12 22:15:26 +02:00
|
|
|
|
2016-10-16 19:21:50 +02:00
|
|
|
GameBase.hpp
|
|
|
|
GameBase.cpp
|
2014-09-16 20:22:43 +02:00
|
|
|
RWGame.cpp
|
|
|
|
|
2016-05-20 03:09:22 +02:00
|
|
|
GameConfig.cpp
|
2016-06-22 12:29:39 +02:00
|
|
|
GameWindow.cpp
|
2016-05-20 03:09:22 +02:00
|
|
|
|
2016-10-17 00:56:51 +02:00
|
|
|
StateManager.hpp
|
|
|
|
StateManager.cpp
|
2014-08-12 22:15:26 +02:00
|
|
|
State.cpp
|
|
|
|
|
2016-10-18 23:00:53 +02:00
|
|
|
MenuSystem.hpp
|
|
|
|
MenuSystem.cpp
|
|
|
|
|
2016-11-17 00:34:28 +01:00
|
|
|
GameInput.hpp
|
|
|
|
GameInput.cpp
|
|
|
|
|
2016-07-02 20:49:31 +02:00
|
|
|
states/LoadingState.hpp
|
|
|
|
states/LoadingState.cpp
|
|
|
|
states/IngameState.hpp
|
|
|
|
states/IngameState.cpp
|
|
|
|
states/PauseState.hpp
|
|
|
|
states/PauseState.cpp
|
|
|
|
states/MenuState.hpp
|
|
|
|
states/MenuState.cpp
|
|
|
|
states/DebugState.hpp
|
|
|
|
states/DebugState.cpp
|
|
|
|
states/BenchmarkState.hpp
|
|
|
|
states/BenchmarkState.cpp
|
2017-10-26 00:44:45 +02:00
|
|
|
|
2015-02-15 13:41:51 +01:00
|
|
|
DrawUI.cpp
|
2014-05-26 06:34:49 +02:00
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2016-07-03 00:00:11 +02:00
|
|
|
add_executable(rwgame
|
|
|
|
${RWGAME_SOURCES})
|
|
|
|
|
2017-10-26 00:44:45 +02:00
|
|
|
target_include_directories(rwgame
|
|
|
|
SYSTEM
|
|
|
|
PRIVATE
|
|
|
|
${BULLET_INCLUDE_DIR}
|
|
|
|
${OPENAL_INCLUDE_DIR}
|
|
|
|
${SDL2_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(rwgame
|
|
|
|
PUBLIC
|
|
|
|
"${CMAKE_SOURCE_DIR}/rwgame"
|
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2016-06-22 12:29:39 +02:00
|
|
|
target_link_libraries(rwgame
|
2017-10-26 00:44:45 +02:00
|
|
|
PRIVATE
|
2014-08-17 00:02:34 +02:00
|
|
|
rwengine
|
2016-09-01 19:04:21 +02:00
|
|
|
${Boost_LIBRARIES}
|
2014-08-17 00:02:34 +02:00
|
|
|
${OPENGL_LIBRARIES}
|
2016-06-22 12:29:39 +02:00
|
|
|
${BULLET_LIBRARIES}
|
2016-06-22 23:28:05 +02:00
|
|
|
${SDL2_LIBRARY}
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2016-06-29 23:19:03 +02:00
|
|
|
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")
|