-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
72 lines (54 loc) · 946 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
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
#--- Main
project(GraphShader)
cmake_minimum_required(VERSION 3.16)
list(APPEND CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake"
)
#--- Main
add_executable(GraphShaderEngine
src/GraphShaderEngine.cpp
src/glad.c
src/glad_egl.c
)
target_compile_definitions(GraphShaderEngine
PRIVATE
_GS_MAIN_
)
target_include_directories(GraphShaderEngine
PUBLIC
src
)
target_link_libraries(GraphShaderEngine
PUBLIC
-lEGL
-ldl
)
install(
TARGETS
GraphShaderEngine
)
add_library(graphshader
SHARED
src/GraphShaderEngine.cpp
src/glad.c
src/glad_egl.c
)
target_include_directories(graphshader
PUBLIC
src
)
target_link_libraries(graphshader
PUBLIC
-lEGL
-ldl
)
install(
TARGETS
graphshader
)
install(
PROGRAMS
"${CMAKE_CURRENT_SOURCE_DIR}/src/GraphShaderTranspiler.py"
TYPE
BIN
)