KlassischeKeplerKriege/game/CMakeLists.txt
2016-09-27 19:43:46 +02:00

41 lines
834 B
CMake

set(CMAKE_INCLUDE_CURRENT_DIRS ON)
find_package(OpenGL REQUIRED)
find_package(epoxy REQUIRED)
find_package(X11 REQUIRED)
set(GAME_SRC
main.cpp
opengl.cpp
glclasses.cpp
renderer.cpp
game_window.cpp
triangle_window.cpp
util.cpp
game.cpp
state/object.cpp
state/explosion.cpp
state/trace.cpp
state/state.cpp
state/player.cpp
state/planet.cpp
state/missile.cpp
state/commands.cpp
state/state.cpp
)
set(GAME_HEADERS
opengl.hpp
glclasses.hpp
renderer.hpp
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${OPENGL_INCLUDE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/libs/glm/)
add_executable(game ${GAME_SRC} ${GAME_HEADERS})
setup_target(game)
target_link_libraries(game X11 epoxy)