-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
63 lines (55 loc) · 1.27 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
cmake_minimum_required(VERSION 3.4.1)
# Compiler options
add_compile_options(-Wall)
if(CC_USE_JSMN)
set(SOURCE_JSMN
jsmn/cc_jsmnWrapper.c
jsmn/cc_jsmnStream.c)
endif()
if(CC_USE_MATH)
set(SOURCE_MATH
math/cc_doubleSingle.c
math/cc_float.c
math/cc_fplane.c
math/cc_mat3f.c
math/cc_mat4f.c
math/cc_orientation.c
math/cc_plane.c
math/cc_pow2n.c
math/cc_quaternion.c
math/cc_ray3d.c
math/cc_ray3f.c
math/cc_rect12f.c
math/cc_sphere.c
math/cc_stack4f.c
math/cc_vec2f.c
math/cc_vec3d.c
math/cc_vec3f.c
math/cc_vec4f.c)
endif()
if(CC_USE_RNG)
set(SOURCE_RNG
../pcg_c_basic/pcg_basic.c
rng/cc_rngUniform.c
rng/cc_rngNormal.c)
endif()
# Submodule library
add_library(cc
STATIC
# Source
cc_jobq.c
cc_list.c
cc_log.c
cc_map.c
cc_memory.c
cc_multimap.c
cc_mumurhash3.c
cc_timestamp.c
cc_workq.c
${SOURCE_JSMN}
${SOURCE_MATH}
${SOURCE_RNG})
# Linking
target_link_libraries(cc
# NDK libraries
log)