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
|
2017-10-26 01:01:57 +02:00
|
|
|
GitSHA1.h
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
|
2016-07-03 00:00:11 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
main.cpp
|
2014-08-12 22:15:26 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
GameBase.hpp
|
|
|
|
GameBase.cpp
|
|
|
|
RWGame.cpp
|
2014-09-16 20:22:43 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
GameConfig.cpp
|
|
|
|
GameWindow.cpp
|
2016-05-20 03:09:22 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
StateManager.hpp
|
|
|
|
StateManager.cpp
|
|
|
|
State.cpp
|
2014-08-12 22:15:26 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
MenuSystem.hpp
|
|
|
|
MenuSystem.cpp
|
2016-10-18 23:00:53 +02:00
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
GameInput.hpp
|
|
|
|
GameInput.cpp
|
2016-11-17 00:34:28 +01:00
|
|
|
|
2017-10-26 01:01:57 +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
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
DrawUI.cpp
|
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2016-07-03 00:00:11 +02:00
|
|
|
add_executable(rwgame
|
2017-10-26 01:01:57 +02:00
|
|
|
${RWGAME_SOURCES}
|
|
|
|
)
|
2016-07-03 00:00:11 +02:00
|
|
|
|
2017-10-26 00:44:45 +02:00
|
|
|
target_include_directories(rwgame
|
|
|
|
PUBLIC
|
2018-06-24 00:43:06 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
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
|
2017-10-26 01:01:57 +02:00
|
|
|
rwengine
|
2018-06-24 00:43:06 +02:00
|
|
|
Boost::program_options
|
|
|
|
SDL2::SDL2
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2017-10-29 07:37:18 +01:00
|
|
|
openrw_target_apply_options(TARGET rwgame)
|
|
|
|
|
2018-06-01 17:46:13 +02:00
|
|
|
install(TARGETS rwgame
|
|
|
|
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
|
|
|
)
|