-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (34 loc) · 827 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 2.6)
project(MissileDefense)
set(SRC_FILES
src/startup.cpp
src/Game.cpp
src/glad.c
src/gl_frontend.cpp
src/glutils.cpp
src/GLMesh.cpp
src/Controller.cpp
)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
include_directories("include")
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g -Wall")
file(COPY "shaders" DESTINATION ".")
add_subdirectory("ThirdParty/glfw")
add_executable(missiledefense
${SRC_FILES}
)
add_executable(glfw_test
src/glfw_test.cpp
src/glad.c
)
find_package(OpenGL)
target_link_libraries(missiledefense
glfw
)
target_link_libraries(glfw_test
glfw
)