mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-25 11:52:40 +01:00
65b14fcb9c
* remove inih * input.invert_y has now behavior as described on wiki
68 lines
1.1 KiB
CMake
68 lines
1.1 KiB
CMake
find_package(Boost COMPONENTS program_options REQUIRED)
|
|
|
|
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"
|
|
|
|
main.cpp
|
|
|
|
GameBase.hpp
|
|
GameBase.cpp
|
|
RWGame.cpp
|
|
|
|
GameConfig.cpp
|
|
GameWindow.cpp
|
|
|
|
StateManager.hpp
|
|
StateManager.cpp
|
|
State.cpp
|
|
|
|
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
|
|
)
|
|
|
|
add_executable(rwgame
|
|
${RWGAME_SOURCES})
|
|
|
|
include_directories(SYSTEM
|
|
${BULLET_INCLUDE_DIR}
|
|
${OPENAL_INCLUDE_DIR}
|
|
)
|
|
include_directories(
|
|
"${CMAKE_SOURCE_DIR}/rwgame"
|
|
)
|
|
|
|
target_link_libraries(rwgame
|
|
rwengine
|
|
${Boost_LIBRARIES}
|
|
${OPENGL_LIBRARIES}
|
|
${BULLET_LIBRARIES}
|
|
${SDL2_LIBRARY}
|
|
)
|
|
if(MINGW)
|
|
target_link_libraries(rwgame
|
|
mman)
|
|
endif()
|
|
|
|
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")
|