-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
99 lines (78 loc) · 2.24 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
cmake_minimum_required(VERSION 2.8.4)
project(computationLabs)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
include_directories(${CMAKE_SOURCE_DIR})
#lib
set(LIB_SOURCE_FILES
share/matrix.cpp
share/utils.cpp
share/vector.cpp
share/derivable.cpp
)
add_library(computation ${LIB_SOURCE_FILES})
link_libraries(computation)
#lab 01
set(SOURCE_FILES lab01/lab01_rot.cpp)
add_executable(lab_01_rot ${SOURCE_FILES})
set(SOURCE_FILES lab01/lab01_lu.cpp)
add_executable(lab_01_lu ${SOURCE_FILES})
#lab 02
set(SOURCE_FILES lab02/lab02.cpp)
add_executable(lab_02 ${SOURCE_FILES})
#lab 03
set(SOURCE_FILES lab03/lab03.cpp)
add_executable(lab_03 ${SOURCE_FILES})
#lab 04
set(SOURCE_FILES lab04/lab04.cpp)
add_executable(lab_04 ${SOURCE_FILES})
#lab 05
set(SOURCE_FILES lab05/lab05.cpp)
add_executable(lab_05 ${SOURCE_FILES})
#########################################################
# FIND GLUT
#########################################################
find_package(GLUT REQUIRED)
include_directories(${GLUT_INCLUDE_DIRS})
link_directories(${GLUT_LIBRARY_DIRS})
add_definitions(${GLUT_DEFINITIONS})
if (NOT GLUT_FOUND)
message(ERROR " GLUT not found!")
endif (NOT GLUT_FOUND)
#########################################################
# FIND OPENGL
#########################################################
find_package(OpenGL REQUIRED)
include_directories(${OpenGL_INCLUDE_DIRS})
link_directories(${OpenGL_LIBRARY_DIRS})
add_definitions(${OpenGL_DEFINITIONS})
if (NOT OPENGL_FOUND)
message(ERROR " OPENGL not found!")
endif (NOT OPENGL_FOUND)
#lab 06
set(SOURCE_FILES lab06/lab06.cpp)
add_executable(lab_06 ${SOURCE_FILES})
target_link_libraries(lab_06
${OPENGL_LIBRARIES}
${GLUT_LIBRARY}
)
#lab 07
set(SOURCE_FILES lab07/lab07.cpp)
add_executable(lab_07 ${SOURCE_FILES})
#lab 08
set(SOURCE_FILES lab08/lab08.cpp)
add_executable(lab_08 ${SOURCE_FILES})
#lab 09
set(SOURCE_FILES lab09/lab09.cpp)
add_executable(lab_09 ${SOURCE_FILES})
#lab 10
set(SOURCE_FILES lab10/lab10.cpp)
add_executable(lab_10 ${SOURCE_FILES})
#lab 11
set(SOURCE_FILES lab11/lab11.cpp)
add_executable(lab_11 ${SOURCE_FILES})
#lab 12
set(SOURCE_FILES lab12/lab12.cpp)
add_executable(lab_12 ${SOURCE_FILES})
#lab 13
set(SOURCE_FILES lab13/lab13.cpp)
add_executable(lab_13 ${SOURCE_FILES})