-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
executable file
·46 lines (28 loc) · 1.06 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
41
42
################################################################################
# Check required CMake version
set(REQUIRED_CMAKE_VERSION "3.14.0")
cmake_minimum_required(VERSION ${REQUIRED_CMAKE_VERSION})
project(apps-and-misc)
################################################################################
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/recipes/")
option(LIBIGL_WITH_TETGEN "Use Tetgen" ON)
# Color output
include(UseColors)
# Extra warnings
include(Warnings)
# Use C++11/14
include(CXXFeatures)
include(PolyfemAMUtils)
include(cli11)
# Sort projects inside the solution
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
# Generate position independent code by default
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
################################################################################
# Polyfem library
################################################################################
# dependencies
include(polyfem)
add_subdirectory(apps)
add_subdirectory(misc)