-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
122 lines (100 loc) · 3.51 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#
# project: fips-nanovg
#
if (NOT FIPS_IMPORT)
cmake_minimum_required(VERSION 2.8)
get_filename_component(FIPS_ROOT_DIR "../fips" ABSOLUTE)
include("${FIPS_ROOT_DIR}/cmake/fips.cmake")
fips_setup()
fips_project(fips-nanovg)
endif()
add_definitions(-DNANOVG_GLEW)
add_definitions(-DGLEW_STATIC) # tell glew headers we are static linking with glew
fips_begin_lib(nanovg)
fips_include_directories(nanovg/src)
fips_src(nanovg/src)
fips_end_lib()
if (NOT FIPS_IMPORT)
if (FIPS_MACOS OR FIPS_LINUX OR FIPS_WINDOWS)
fips_begin_app(example_gl2 cmdline)
fips_include_directories(nanovg/src nanovg/example)
fips_dir(nanovg/example)
fips_files(example_gl2.c demo.c demo.h perf.c perf.h stb_image_write.h)
fips_deps(nanovg GLEW glfw3)
if (FIPS_WINDOWS)
fips_libs(opengl32)
endif()
if (FIPS_LINUX)
fips_libs(X11 Xrandr Xi Xinerama Xxf86vm Xcursor GL m)
endif()
if (FIPS_MACOS)
fips_libs(m)
endif()
fips_end_app()
fips_begin_app(example_gl3 cmdline)
fips_include_directories(nanovg/src nanovg/example)
fips_dir(nanovg/example)
fips_files(example_gl3.c demo.c demo.h perf.c perf.h stb_image_write.h)
fips_deps(nanovg GLEW glfw3)
if (FIPS_WINDOWS)
fips_libs(opengl32)
endif()
if (FIPS_LINUX)
fips_libs(X11 Xrandr Xi Xinerama Xxf86vm Xcursor GL m)
endif()
if (FIPS_MACOS)
fips_libs(m)
endif()
fips_end_app()
fips_begin_app(example_fbo cmdline)
fips_include_directories(nanovg/src nanovg/example)
fips_dir(nanovg/example)
fips_files(example_fbo.c demo.c demo.h perf.c perf.h stb_image_write.h)
fips_deps(nanovg GLEW glfw3)
if (FIPS_WINDOWS)
fips_libs(opengl32)
endif()
if (FIPS_LINUX)
fips_libs(X11 Xrandr Xi Xinerama Xxf86vm Xcursor GL m)
endif()
if (FIPS_MACOS)
fips_libs(m)
endif()
fips_end_app()
fips_begin_app(example_gl2_msaa cmdline)
add_definitions(-DDEMO_MSAA)
fips_include_directories(nanovg/src nanovg/example)
fips_dir(nanovg/example)
fips_files(example_gl2.c demo.c demo.h perf.c perf.h stb_image_write.h)
fips_deps(nanovg GLEW glfw3)
if (FIPS_WINDOWS)
fips_libs(opengl32)
endif()
if (FIPS_LINUX)
fips_libs(X11 Xrandr Xi Xinerama Xxf86vm Xcursor GL m)
endif()
if (FIPS_MACOS)
fips_libs(m)
endif()
fips_end_app()
fips_begin_app(example_gl3_msaa cmdline)
add_definitions(-DDEMO_MSAA)
fips_include_directories(nanovg/src nanovg/example)
fips_dir(nanovg/example)
fips_files(example_gl3.c demo.c demo.h perf.c perf.h stb_image_write.h)
fips_deps(nanovg GLEW glfw3)
if (FIPS_WINDOWS)
fips_libs(opengl32)
endif()
if (FIPS_LINUX)
fips_libs(X11 Xrandr Xi Xinerama Xxf86vm Xcursor GL m)
endif()
if (FIPS_MACOS)
fips_libs(m)
endif()
fips_end_app()
endif()
endif()
if (NOT FIPS_IMPORT)
fips_finish()
endif()