summarylogtreecommitdiffstats
path: root/CMakeLists.txt
blob: a348f2653ffc046b20ab1e67539a876f4e929e94 (plain)
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
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

PROJECT(libnoise)

SET (LIBNOISE_SRC
	src/latlon.cpp
	src/model/cylinder.cpp
	src/model/line.cpp
	src/model/plane.cpp
	src/model/sphere.cpp
	src/module/abs.cpp
	src/module/add.cpp
	src/module/billow.cpp
	src/module/blend.cpp
	src/module/cache.cpp
	src/module/checkerboard.cpp
	src/module/clamp.cpp
	src/module/const.cpp
	src/module/curve.cpp
	src/module/cylinders.cpp
	src/module/displace.cpp
	src/module/exponent.cpp
	src/module/invert.cpp
	src/module/max.cpp
	src/module/min.cpp
	src/module/modulebase.cpp
	src/module/multiply.cpp
	src/module/perlin.cpp
	src/module/power.cpp
	src/module/ridgedmulti.cpp
	src/module/rotatepoint.cpp
	src/module/scalebias.cpp
	src/module/scalepoint.cpp
	src/module/select.cpp
	src/module/spheres.cpp
	src/module/terrace.cpp
	src/module/translatepoint.cpp
	src/module/turbulence.cpp
	src/module/voronoi.cpp
	src/noisegen.cpp
)

set (BASE_HEADERS
	src/basictypes.h
	src/exception.h
	src/interp.h
	src/latlon.h
	src/mathconsts.h
	src/misc.h
	src/noise.h
	src/noisegen.h
	src/vectortable.h
)

SET (MODEL_HEADERS
	src/model/cylinder.h
	src/model/line.h
	src/model/model.h
	src/model/plane.h
	src/model/sphere.h
)

SET (MODULE_HEADERS
	src/module/abs.h
	src/module/add.h
	src/module/billow.h
	src/module/blend.h
	src/module/cache.h
	src/module/checkerboard.h
	src/module/clamp.h
	src/module/const.h
	src/module/curve.h
	src/module/cylinders.h
	src/module/displace.h
	src/module/exponent.h
	src/module/invert.h
	src/module/max.h
	src/module/min.h
	src/module/module.h
	src/module/modulebase.h
	src/module/multiply.h
	src/module/perlin.h
	src/module/power.h
	src/module/ridgedmulti.h
	src/module/rotatepoint.h
	src/module/scalebias.h
	src/module/scalepoint.h
	src/module/select.h
	src/module/spheres.h
	src/module/terrace.h
	src/module/translatepoint.h
	src/module/turbulence.h
	src/module/voronoi.h
)

ADD_LIBRARY (noise SHARED ${LIBNOISE_SRC})
SET_TARGET_PROPERTIES (noise PROPERTIES VERSION 1.0.0)
INSTALL(TARGETS noise DESTINATION lib)
INSTALL(FILES ${BASE_HEADERS} DESTINATION "include/noise")
INSTALL(FILES ${MODEL_HEADERS} DESTINATION "include/noise/model")
INSTALL(FILES ${MODULE_HEADERS} DESTINATION "include/noise/module")