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

67 lines
1.1 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})
2016-04-28 01:54:42 +02:00
include_directories(SYSTEM
${BULLET_INCLUDE_DIR}
2016-07-27 19:28:49 +02:00
${OPENAL_INCLUDE_DIR}
2016-04-28 01:54:42 +02:00
)
include_directories(
"${CMAKE_SOURCE_DIR}/rwgame"
2016-04-28 01:54:42 +02:00
)
2014-01-26 04:45:55 +01:00
target_link_libraries(rwgame
rwengine
${Boost_LIBRARIES}
${OPENGL_LIBRARIES}
${BULLET_LIBRARIES}
2016-06-22 23:28:05 +02:00
${SDL2_LIBRARY}
)
2016-07-27 19:28:49 +02:00
if(MINGW)
2017-09-15 12:23:29 +02:00
target_link_libraries(rwgame)
2016-07-27 19:28:49 +02:00
endif()
2014-01-26 04:45:55 +01:00
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")