-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 1.22 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
cmake_minimum_required(VERSION 3.30)
project(SeamlessParametrizationPenner)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_compile_options(-fPIC)
add_compile_options(-Wno-register)
if(PROJECT_IS_TOP_LEVEL)
# Options for the project
option(USE_PYBIND "Generate pybindings" OFF)
option(USE_MULTIPRECISION "Use high precision floating point" OFF)
option(USE_SUITESPARSE "Use suitesparse for QR factorization" ON)
# TODO Need to disable most features for mpfr, including suitesparse
option(USE_COMISO "Use Comiso for field generation" ON)
option(RENDER_TEXTURE "Render results" ON)
option(ENABLE_VISUALIZATION "Generate viewers for visualization" OFF)
option(CHECK_VALIDITY "Check validity pre and post conditions" OFF)
option(BUILD_CURVATURE_METRIC_TESTS "Build tests" OFF)
option(USE_EMBREE "Use embree" ON)
# Set libigl options
option(LIBIGL_PREDICATES "Use Predicates" ON)
set ( SUITESPARSE_ENABLE_PROJECTS "suitesparse_config;cholmod;spqr" )
option ( SUITESPARSE_USE_CUDA OFF )
endif()
# Install executables to bin directory
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# add core Penner methods
add_subdirectory(ext/penner-optimization)
# add executables
add_subdirectory(app)