-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathCMakeLists.txt
24 lines (17 loc) · 982 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
project (DioDe)
cmake_minimum_required (VERSION 3.9)
# Default to Release
if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif (NOT CMAKE_BUILD_TYPE)
include_directories (include)
find_package (CGAL REQUIRED)
# CGAL 4.9.1 removes -O3 from the release flags. I want it back.
if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
endif ()
set (CMAKE_CXX_STANDARD 14)
add_subdirectory (ext/pybind11)
add_subdirectory (examples)
add_subdirectory (bindings/python)