-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
88 lines (74 loc) · 1.95 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
cmake_minimum_required(VERSION 3.3)
set (CMAKE_CXX_STANDARD 11)
# rebasing these in... not sure how necessary
set(CMAKE_BUILD_TYPE "Debug")
set(glbinding_DIR "/usr/local/Cellar/glbinding/2.1.4/")
find_package(glfw3 REQUIRED)
find_package(glbinding REQUIRED)
find_package(glm REQUIRED)
# on arch, the glogConfig.cmake script is not packaged with glog :/
# set(GLOG_LIBRARY "/usr/lib/libglog.so")
# set(libs PUBLIC glbinding::glbinding glfw ${GLOG_LIBRARY})
find_package(glog REQUIRED)
set(libs PUBLIC glbinding::glbinding glfw glog::glog
# if i wasnt a lazy asshole i would just write a cmake script to pull this in ._.
/Users/jrsa/Desktop/OculusSDK/LibOVR/Lib/Mac/Release/libovr.a
/System/Library/Frameworks/Cocoa.framework
/System/Library/Frameworks/IOKit.framework
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}
/usr/local/include
# ditto for this, lazy asshole
/Users/jrsa/Desktop/OculusSDK/LibOVR/Include
)
# will be made into the library compilation target
set(shared_sources
glfw_app.cpp
shader.cpp
particle_buffer.cpp
fbo.cpp
billboard.cpp
)
# will go in demos/ folder or something
set(target point)
add_executable(${target}
${target}.cpp
${shared_sources}
)
target_link_libraries(${target} ${libs})
set(target fbloop)
add_executable(${target}
${target}.cpp
${shared_sources}
)
target_link_libraries(${target} ${libs})
set(target tfb)
add_executable(${target}
${target}.cpp
${shared_sources}
)
target_link_libraries(${target} ${libs})
set(target box)
add_executable(${target}
${target}.cpp
glfw_app.cpp
shader.cpp
)
target_link_libraries(${target} ${libs})
set(target q)
add_executable(${target}
${target}.cpp
billboard.cpp
glfw_app.cpp
shader.cpp
)
target_link_libraries(${target} ${libs})
set(target meshtest)
add_executable(${target}
${target}.cpp
billboard.cpp
glfw_app.cpp
shader.cpp
fbo.cpp
)
target_link_libraries(${target} ${libs})