1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 12:22:34 +01:00
openrw/rwgame/CMakeLists.txt
Anonymous Maarten a40a2706a9 cmake: add support for include-what-you-use to check #include's
The output is currently very verbose and includes many false positives.
Adding a mapping file should solve this.

See
https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/IWYUMappings.md
2017-10-29 20:40:57 +00:00

69 lines
1.3 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}
)
target_include_directories(rwgame
SYSTEM
PRIVATE
${Boost_INCLUDE_DIRS}
)
target_include_directories(rwgame
PUBLIC
"${CMAKE_SOURCE_DIR}/rwgame"
)
target_link_libraries(rwgame
PRIVATE
rwengine
${Boost_PROGRAM_OPTIONS_LIBRARY}
SDL2::SDL2
)
openrw_target_apply_options(TARGET rwgame)
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")