-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (35 loc) · 863 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
cmake_minimum_required (VERSION 2.6)
project (isogen)
set (ISOGEN_SRCS
app.c
voxelgrid.c
sphere_generator.c
random_generator.c
mesh_generator.c
grid_accel.c
generator.c
settings.c
renderer.c
utils.c
cli.c
)
set (isogen_VERSION_MAJOR 0)
set (isogen_VERSION_MINOR 1)
include_directories ("${PROJECT_BINARY_DIR}")
find_package (GTK2)
if (GTK2_FOUND)
include_directories (${GTK2_INCLUDE_DIRS})
set (isogen_USE_GTK 1)
set (ISOGEN_GTK_SRCS gui.c)
else ()
set (isogen_USE_GTK 0)
endif ()
configure_file(
"${PROJECT_SOURCE_DIR}/isogen_config.h.in"
"${PROJECT_BINARY_DIR}/isogen_config.h"
)
add_executable (isogen ${ISOGEN_SRCS} ${ISOGEN_GTK_SRCS})
add_library(math STATIC IMPORTED)
target_link_libraries (isogen ${GTK2_LIBRARIES})
target_link_libraries (isogen m)
set(CMAKE_BUILD_TYPE Debug)