forked from songrun/SeamAwareDecimater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (37 loc) · 973 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.8.6)
SET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
## We need Eigen
find_package(EIGEN REQUIRED)
include_directories( "${EIGEN_INCLUDE_DIR}" )
## We need libigl
find_package(LIBIGL REQUIRED)
include_directories( "${LIBIGL_INCLUDE_DIR}" )
## We don't have/want MOSEK
add_definitions(-DIGL_NO_MOSEK)
link_directories(
/usr/local/lib
/opt/local/lib
${EIGEN_DIRS}
)
## We need C++11. Put this directive after CGAL's include.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g " )
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options(-stdlib=libc++)
endif()
add_library(DEC_LIBS
OBJECT
quadric_error_metric.cpp
cost_and_placement.cpp
half_edge.cpp
neighbor_faces_and_boundary.cpp
detect_foldover.cpp
decimate.cpp
collapse_edge_seam.cpp
)
add_executable(decimater
decimater.cpp
$<TARGET_OBJECTS:DEC_LIBS>
)
target_link_libraries ( decimater
${LIBIGL_LIBRARIES}
)