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

70 lines
1.2 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
GitSHA1.h
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
2014-05-26 06:34:49 +02:00
main.cpp
GameBase.hpp
GameBase.cpp
RWGame.cpp
GameConfig.cpp
GameWindow.cpp
StateManager.hpp
StateManager.cpp
State.cpp
2016-10-18 23:00:53 +02:00
MenuSystem.hpp
MenuSystem.cpp
GameInput.hpp
GameInput.cpp
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
DrawUI.cpp
2014-05-26 06:34:49 +02:00
)
2014-01-26 04:45:55 +01:00
add_executable(rwgame
${RWGAME_SOURCES})
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
target_link_libraries(rwgame
PRIVATE
rwengine
${Boost_LIBRARIES}
${OPENGL_LIBRARIES}
${BULLET_LIBRARIES}
2016-06-22 23:28:05 +02:00
${SDL2_LIBRARY}
)
2014-01-26 04:45:55 +01:00
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")