-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
55 lines (45 loc) · 1.4 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
cmake_minimum_required(VERSION 3.6)
project(clumpy)
# To override, invoke cmake with -DCMAKE_BUILD_TYPE=Debug
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to 'Release' as none was specified.")
set(CMAKE_BUILD_TYPE "Release")
endif()
add_subdirectory(extern/blob)
add_subdirectory(extern/cnpy)
add_subdirectory(extern/fmt)
add_subdirectory(extern/svg)
set(CMAKE_CXX_FLAGS "-std=c++14 -Wall")
include_directories(extern extern/glm .)
link_libraries(fmt cnpy)
set(CMDS
commands/advect_points.cc
commands/bridson_points.cc
commands/cull_points.cc
commands/curl_2d.cc
commands/generate_dshapes.cc
commands/generate_simplex.cc
commands/gradient_noise.cc
commands/pendulum_phase.cc
commands/splat_points.cc
commands/test_clumpy.cc
commands/visualize_sdf.cc)
find_package(CGAL QUIET)
if (CGAL_FOUND)
message("Found CGAL in ${CGAL_DIR}")
set(CMDS ${CMDS} commands/cgal_streamlines.cc)
link_directories(${CGAL_LIBRARIES_DIR})
include_directories(${CGAL_INCLUDE_DIRS})
link_libraries(${CGAL_LIB} gmp)
endif()
find_package(embree 3.0 QUIET PATHS /usr/lib64/cmake)
if (embree_FOUND)
message("Found embree in ${embree_DIR}")
set(CMDS ${CMDS} commands/test_embree.cc)
include_directories(${EMBREE_INCLUDE_DIRS})
link_libraries(${EMBREE_LIBRARIES} tbb)
endif()
add_executable(clumpy
${CMDS}
clumpy_command.hh
main_clumpy.cc)