-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
37 lines (30 loc) · 1.04 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
cmake_minimum_required(VERSION 2.8)
project(VoxelMultiAxisAM)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
SET(qhullDir ${CMAKE_CURRENT_SOURCE_DIR}/qhull)
INCLUDE_DIRECTORIES(${qhullDir}/src/libqhullcpp)
INCLUDE_DIRECTORIES(${qhullDir}/src)
LINK_DIRECTORIES(${qhullDir}/build)
SET(qhullLibs ${qhullDir}/build/libqhullcpp.a libqhullstatic_r.a)
option(LIBIGL_WITH_OPENGL "Use OpenGL" ON)
option(LIBIGL_WITH_OPENGL_GLFW "Use GLFW" ON)
option(LIBIGL_WITH_OPENGL_GLFW_IMGUI "Use ImGui" ON)
find_package(LIBIGL REQUIRED QUIET)
include_directories(
include)
file(GLOB SRCFILES
src/main.cpp
src/bsp_tree.cpp
src/voxel.cpp
src/file_parser.cpp
src/kdtree.cpp
src/trimming.cpp
src/bst.cpp
src/dual_contouring.cpp
)
add_executable(${PROJECT_NAME}_bin ${SRCFILES})
target_link_libraries(
${PROJECT_NAME}_bin
${qhullLibs}
igl::core igl::opengl_glfw igl::opengl_glfw_imgui igl::cgal)