1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00
openrw/rwgame/CMakeLists.txt

71 lines
1.3 KiB
CMake
Raw Normal View History

find_package(Boost COMPONENTS program_options REQUIRED)
2016-08-09 14:03:38 +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"
2017-10-26 01:01:57 +02:00
main.cpp
2017-10-26 01:01:57 +02:00
GameBase.hpp
GameBase.cpp
RWGame.cpp
2017-10-26 01:01:57 +02:00
GameConfig.cpp
GameWindow.cpp
2017-10-26 01:01:57 +02:00
StateManager.hpp
StateManager.cpp
State.cpp
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
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 01:01:57 +02:00
DrawUI.cpp
)
2014-01-26 04:45:55 +01:00
add_executable(rwgame
2017-10-26 01:01:57 +02:00
${RWGAME_SOURCES}
)
target_include_directories(rwgame
SYSTEM
PRIVATE
${Boost_INCLUDE_DIRS}
)
target_include_directories(rwgame
PUBLIC
"${CMAKE_SOURCE_DIR}/rwgame"
)
2014-01-26 04:45:55 +01:00
target_link_libraries(rwgame
PRIVATE
2017-10-26 01:01:57 +02:00
rwengine
${Boost_PROGRAM_OPTIONS_LIBRARY}
2017-10-26 01:47:29 +02:00
SDL2::SDL2
)
2014-01-26 04:45:55 +01:00
openrw_target_apply_options(TARGET rwgame)
install(TARGETS rwgame
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)