1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-05 00:27:30 +02:00
openrw/rwgame/CMakeLists.txt

58 lines
998 B
CMake
Raw Normal View History

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
RWGame.cpp
GameConfig.cpp
GameWindow.cpp
State.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
inih
${OPENGL_LIBRARIES}
${BULLET_LIBRARIES}
2016-06-22 23:28:05 +02:00
${SDL2_LIBRARY}
)
2016-07-27 19:28:49 +02:00
if(MINGW)
add_definitions(-D _USE_MATH_DEFINES)
target_link_libraries(rwgame
iconv
2016-08-03 22:30:40 +02:00
mman)
2016-07-27 19:28:49 +02:00
endif()
2014-01-26 04:45:55 +01:00
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")