-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
56 lines (48 loc) · 1.36 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# CMake entry point
cmake_minimum_required (VERSION 2.6)
project (openGL-Tessellation)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package (OpenGL REQUIRED)
# Compile external dependencies
add_subdirectory (external)
include_directories(
external/AntTweakBar-1.16/include/
external/glfw-3.1.2/include/GLFW/
external/glm-0.9.7.1/
external/glew-1.13.0/include/
external/assimp-3.0.1270/include/
external/bullet-2.81-rev2613/src/
common/
.
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW_1130
)
add_definitions(
-DTW_STATIC
-DTW_NO_LIB_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Model/Suzanne.obj DESTINATION Model/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/Model/Suzanne.mtl DESTINATION Model/)
# PN Triangles
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/PN_Triangles/shaders/Standard.vert DESTINATION shaders/)
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/PN_Triangles/shaders/Standard.frag DESTINATION shaders/)
add_executable(PN_Triangles
PN_Triangles/pn_triangles.cpp
common/objloader.cpp
common/vboindexer.cpp
PN_Triangles/shaders/Standard.vert
PN_Triangles/shaders/Standard.frag
PN_Triangles/shaders/Tessellation.vs.glsl
PN_Triangles/shaders/Tessellation.tc.glsl
PN_Triangles/shaders/Tessellation.te.glsl
PN_Triangles/shaders/Tessellation.fs.glsl
)
target_link_libraries(PN_Triangles
${ALL_LIBS}
)