2016-07-03 00:00:11 +02:00
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY)
|
|
|
|
|
2018-12-19 01:16:27 +01:00
|
|
|
add_library(librwgame STATIC
|
2017-10-26 01:01:57 +02:00
|
|
|
GitSHA1.h
|
|
|
|
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
|
2016-07-03 00:00:11 +02:00
|
|
|
|
2018-12-12 18:51:04 +01:00
|
|
|
RWConfig.inc
|
|
|
|
RWConfig.hpp
|
|
|
|
RWConfig.cpp
|
|
|
|
|
2017-10-26 01:01:57 +02:00
|
|
|
GameBase.hpp
|
|
|
|
GameBase.cpp
|
2018-08-30 03:00:39 +02:00
|
|
|
RWGame.hpp
|
2017-10-26 01:01:57 +02:00
|
|
|
RWGame.cpp
|
2018-08-30 03:00:39 +02:00
|
|
|
GameWindow.hpp
|
2017-10-26 01:01:57 +02:00
|
|
|
GameWindow.cpp
|
2016-05-20 03:09:22 +02:00
|
|
|
|
2018-12-20 20:31:14 +01:00
|
|
|
RWImGui.cpp
|
|
|
|
RWImGui.hpp
|
|
|
|
|
2018-10-29 14:52:18 +01:00
|
|
|
HUDDrawer.hpp
|
|
|
|
HUDDrawer.cpp
|
2017-10-26 01:01:57 +02:00
|
|
|
MenuSystem.hpp
|
|
|
|
MenuSystem.cpp
|
|
|
|
GameInput.hpp
|
|
|
|
GameInput.cpp
|
2016-11-17 00:34:28 +01:00
|
|
|
|
2018-08-30 03:00:39 +02:00
|
|
|
game.hpp
|
|
|
|
WindowIcon.hpp
|
|
|
|
|
|
|
|
StateManager.hpp
|
|
|
|
StateManager.cpp
|
|
|
|
State.hpp
|
|
|
|
State.cpp
|
|
|
|
|
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
|
|
|
|
)
|
2014-01-26 04:45:55 +01:00
|
|
|
|
2018-12-19 01:16:27 +01:00
|
|
|
openrw_target_apply_options(
|
|
|
|
TARGET librwgame
|
2018-11-27 19:56:25 +01:00
|
|
|
CORE
|
2018-12-19 01:16:27 +01:00
|
|
|
COVERAGE
|
2017-10-26 01:01:57 +02:00
|
|
|
)
|
2016-07-03 00:00:11 +02:00
|
|
|
|
2018-12-19 01:16:27 +01:00
|
|
|
set_target_properties(librwgame
|
|
|
|
PROPERTIES
|
|
|
|
OUTPUT_NAME "rwgame"
|
|
|
|
PREFIX "lib"
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(librwgame
|
2017-10-26 00:44:45 +02:00
|
|
|
PUBLIC
|
2018-06-24 00:43:06 +02:00
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}"
|
2017-10-26 00:44:45 +02:00
|
|
|
)
|
2018-12-19 01:16:27 +01:00
|
|
|
target_link_libraries(librwgame
|
|
|
|
PUBLIC
|
|
|
|
openrw::interface
|
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
|
|
|
|
2019-05-23 00:10:01 +02:00
|
|
|
target_compile_definitions(librwgame
|
|
|
|
PUBLIC
|
|
|
|
RW_IMGUI
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(librwgame
|
|
|
|
PUBLIC
|
|
|
|
imgui::sdl_gl3
|
|
|
|
)
|
2018-12-20 20:31:14 +01:00
|
|
|
|
2018-12-19 01:16:27 +01:00
|
|
|
add_executable(rwgame
|
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(rwgame
|
|
|
|
PRIVATE
|
|
|
|
librwgame
|
|
|
|
)
|
|
|
|
|
2018-09-01 18:23:10 +02:00
|
|
|
openrw_target_apply_options(
|
|
|
|
TARGET rwgame
|
2018-11-27 19:56:25 +01:00
|
|
|
CORE
|
2018-11-20 06:51:34 +01:00
|
|
|
COVERAGE
|
2018-09-01 18:23:10 +02:00
|
|
|
INSTALL INSTALL_PDB
|
2018-06-01 17:46:13 +02:00
|
|
|
)
|