-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (39 loc) · 892 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cmake_minimum_required(VERSION 3.1)
project(einkleinflug)
cmake_policy(SET CMP0004 OLD)
set(CMAKE_CXX_STANDARD 11)
find_package(FreeGLUT REQUIRED)
find_package(OpenGL REQUIRED)
find_package(SDL2 REQUIRED)
find_package(Threads REQUIRED)
add_executable(einkleinflug
common/main.cxx
logic/ship.cxx
particles/beam.cxx
particles/emitter.cxx
particles/explosion.cxx
particles/jet.cxx
particles/system.cxx
physics/body.cxx
physics/manifold.cxx
physics/world.cxx
visual/text.cxx
)
target_compile_definitions(einkleinflug PRIVATE
GL_GLEXT_PROTOTYPES
)
target_compile_options(einkleinflug PRIVATE
-Wall -Wextra
)
target_include_directories(einkleinflug PUBLIC
${PROJECT_SOURCE_DIR}/
${PROJECT_SOURCE_DIR}/common/
${OPENGL_INCLUDE_DIR}
${SDL2_INCLUDE_DIRS}
)
target_link_libraries(einkleinflug
${CMAKE_THREAD_LIBS_INIT}
FreeGLUT::freeglut
${OPENGL_LIBRARIES}
${SDL2_LIBRARIES}
)