1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00

cmake: reformat rwgame/CMakeLists.txt

This commit is contained in:
Anonymous Maarten 2017-10-26 01:01:57 +02:00 committed by Daniel Evans
parent f5a237bf7b
commit 282a6e2714

View File

@ -3,46 +3,47 @@ find_package(Boost COMPONENTS program_options REQUIRED)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/GitSHA1.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" @ONLY)
set(RWGAME_SOURCES set(RWGAME_SOURCES
GitSHA1.h GitSHA1.h
"${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp" "${CMAKE_CURRENT_BINARY_DIR}/GitSHA1.cpp"
main.cpp main.cpp
GameBase.hpp GameBase.hpp
GameBase.cpp GameBase.cpp
RWGame.cpp RWGame.cpp
GameConfig.cpp GameConfig.cpp
GameWindow.cpp GameWindow.cpp
StateManager.hpp StateManager.hpp
StateManager.cpp StateManager.cpp
State.cpp State.cpp
MenuSystem.hpp MenuSystem.hpp
MenuSystem.cpp MenuSystem.cpp
GameInput.hpp GameInput.hpp
GameInput.cpp GameInput.cpp
states/LoadingState.hpp states/LoadingState.hpp
states/LoadingState.cpp states/LoadingState.cpp
states/IngameState.hpp states/IngameState.hpp
states/IngameState.cpp states/IngameState.cpp
states/PauseState.hpp states/PauseState.hpp
states/PauseState.cpp states/PauseState.cpp
states/MenuState.hpp states/MenuState.hpp
states/MenuState.cpp states/MenuState.cpp
states/DebugState.hpp states/DebugState.hpp
states/DebugState.cpp states/DebugState.cpp
states/BenchmarkState.hpp states/BenchmarkState.hpp
states/BenchmarkState.cpp states/BenchmarkState.cpp
DrawUI.cpp DrawUI.cpp
) )
add_executable(rwgame add_executable(rwgame
${RWGAME_SOURCES}) ${RWGAME_SOURCES}
)
target_include_directories(rwgame target_include_directories(rwgame
SYSTEM SYSTEM
@ -59,11 +60,11 @@ target_include_directories(rwgame
target_link_libraries(rwgame target_link_libraries(rwgame
PRIVATE PRIVATE
rwengine rwengine
${Boost_LIBRARIES} ${Boost_LIBRARIES}
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
${BULLET_LIBRARIES} ${BULLET_LIBRARIES}
${SDL2_LIBRARY} ${SDL2_LIBRARY}
) )
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}") install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")