-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (38 loc) · 1.15 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
cmake_minimum_required (VERSION 2.6)
project (MeshFix)
add_subdirectory(contrib/JMeshLib)
add_library (superlu SHARED IMPORTED)
set_target_properties( superlu PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/contrib/superlu/libsuperlu_4.3.a )
include_directories(
include
contrib/superlu
contrib/JMeshLib/include
contrib/OpenNL3.2.1/src
contrib/jrs_predicates
contrib/superlu
)
link_directories(
${LINK_DIRECTORIES}
${CMAKE_CURRENT_SOURCE_DIR}/contrib/JMeshLib/lib
${CMAKE_CURRENT_SOURCE_DIR}/contrib/superlu
)
file(GLOB meshfix_h include/*.h)
set(meshfix_src
contrib/jrs_predicates/jrs_predicates.c
src/detectIntersections.cpp
src/holeFilling.cpp
src/sparseLSystem.cpp
src/mwExtensions.cpp
src/smoothing.cpp
contrib/OpenNL3.2.1/src/nl_single_file.c
src/epsilonSampling.cpp
src/simplification.cpp
src/uniform.cpp
src/cleaning.cpp
)
if(CMAKE_CXX_SIZEOF_DATA_PTR EQUAL 8)
ADD_DEFINITIONS(-DIS64BITPLATFORM) ## needed for 64 bit
endif()
ADD_DEFINITIONS(-DNL_USE_SUPERLU)
add_executable(meshfix ${meshfix_src} ${meshfix_h} meshfix.cpp)
target_link_libraries(meshfix jmesh superlu blas)