forked from randyfortier/CSCI3090U_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
59 lines (47 loc) · 1.21 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
cmake_minimum_required(VERSION 3.0)
project(CSCI-3090)
find_package(OpenGL REQUIRED)
# Compile external-libs dependencies
add_subdirectory(external-libs)
include_directories(
external-libs/glfw/include/
external-libs/glm/
external-libs/glew/include/
shaders/
tiny_obj_loader/
)
set(ALL_LIBS ${OPENGL_LIBRARY} glfw GLEW)
# Assignment Four
set(A4 "Assignment-Four")
file(GLOB_RECURSE A4_files
${A4}/main.cpp
shaders/*
)
add_executable(A4 ${A4_files})
target_link_libraries(A4 ${ALL_LIBS})
# Assignment Two
set(A2 "Assignment-Two")
file(GLOB_RECURSE A2_files
${A2}/main.cpp
shaders/*
tiny_obj_loader/*
)
add_executable(A2 ${A2_files})
target_link_libraries(A2 ${ALL_LIBS})
# part1
set(P1 "Assignment-One/part1")
file(GLOB_RECURSE P1_files
${P1}/main.cpp
shaders/*
tiny_obj_loader/*
)
add_executable(P1 ${P1_files})
target_link_libraries(P1 ${ALL_LIBS})
# part2
set(P2 "Assignment-One/part2")
file(GLOB_RECURSE P2_files
${P2}/main.cpp
shaders/*
)
add_executable(P2 ${P2_files})
target_link_libraries(P2 ${ALL_LIBS})