2016-09-13 19:03:36 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIRS ON)
|
|
|
|
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(epoxy REQUIRED)
|
|
|
|
find_package(X11 REQUIRED)
|
2016-09-28 11:00:40 +00:00
|
|
|
find_package(assimp REQUIRED)
|
2016-09-13 19:03:36 +00:00
|
|
|
|
|
|
|
set(GAME_SRC
|
2016-09-27 16:07:21 +00:00
|
|
|
main.cpp
|
|
|
|
opengl.cpp
|
|
|
|
glclasses.cpp
|
2016-09-27 16:23:58 +00:00
|
|
|
game_window.cpp
|
2016-09-28 09:50:35 +00:00
|
|
|
renderer.cpp
|
|
|
|
renderer_polygon_2d/renderer_polygon_2d.cpp
|
|
|
|
renderer_polygon_3d/renderer_polygon_3d.cpp
|
2016-09-28 19:26:11 +00:00
|
|
|
renderer_polygon_3d/polygon_model.cpp
|
|
|
|
renderer_polygon_3d/particle_batch.cpp
|
2016-09-28 09:50:35 +00:00
|
|
|
renderer_ray_tracer/renderer_ray_tracer.cpp
|
|
|
|
|
|
|
|
network/session.cpp
|
2016-09-28 09:35:56 +00:00
|
|
|
|
2016-09-27 16:23:58 +00:00
|
|
|
util.cpp
|
|
|
|
game.cpp
|
2016-09-28 19:26:11 +00:00
|
|
|
|
2016-09-27 16:23:58 +00:00
|
|
|
state/object.cpp
|
2016-09-27 17:32:12 +00:00
|
|
|
state/explosion.cpp
|
|
|
|
state/trace.cpp
|
2016-09-27 16:23:58 +00:00
|
|
|
state/state.cpp
|
|
|
|
state/player.cpp
|
|
|
|
state/planet.cpp
|
|
|
|
state/missile.cpp
|
|
|
|
state/commands.cpp
|
|
|
|
state/state.cpp
|
|
|
|
)
|
2016-09-13 19:03:36 +00:00
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
include_directories(${OPENGL_INCLUDE_DIR})
|
2016-09-27 17:42:42 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libs/glm/)
|
2016-09-27 22:26:36 +00:00
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/libs/asio/asio/include/)
|
2016-09-28 11:00:40 +00:00
|
|
|
include_directories(${assimp_INCLUDE_DIRS})
|
2016-09-13 19:03:36 +00:00
|
|
|
|
2016-09-28 09:35:56 +00:00
|
|
|
add_executable(game ${GAME_SRC})
|
2016-09-13 19:03:36 +00:00
|
|
|
setup_target(game)
|
2016-09-28 11:00:40 +00:00
|
|
|
|
|
|
|
target_link_libraries(game X11 epoxy pthread ${assimp_LIBRARIES} assimp)
|