-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (33 loc) · 1.42 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
cmake_minimum_required(VERSION 3.6)
# ------------------------------------------------------------------------------
# Standard "Radium" cmake preamble Policies and global parameters for CMake
if(POLICY CMP0077)
# allow to define options cache variable before the option is declared
# https://cmake.org/cmake/help/latest/policy/CMP0077.html
cmake_policy(SET CMP0077 NEW)
endif()
if(APPLE)
# MACOSX_RPATH is enabled by default. https://cmake.org/cmake/help/latest/policy/CMP0042.html
cmake_policy(SET CMP0042 NEW)
endif(APPLE)
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
message("Set default build type to ${CMAKE_BUILD_TYPE}")
endif()
project(QuadRemeshing VERSION 1.0.0)
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/installed-${CMAKE_CXX_COMPILER_ID}"
CACHE PATH "Install path prefix, prepended onto install directories." FORCE
)
message("Set install prefix to ${CMAKE_INSTALL_PREFIX}")
set(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT False)
endif()
# ------------------------------------------------------------------------------
add_subdirectory(libs/quadwild/quadwild)
# Configure the helper lib
add_subdirectory(Library)
# Configure the Plugin
add_subdirectory(Plugin)
add_custom_target(${PROJECT_NAME}-Doc SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/README.md)