-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathCMakeCGALSetup.txt
53 lines (50 loc) · 1.29 KB
/
CMakeCGALSetup.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
43
44
45
46
47
48
49
50
51
52
53
# * *************************************************************
# *
# * Soft Active Mater on Surfaces (SAMoS)
# *
# * Author: Rastko Sknepnek
# *
# * Division of Physics
# * School of Engineering, Physics and Mathematics
# * University of Dundee
# *
# * (c) 2013, 2014
# *
# * School of Science and Engineering
# * School of Life Sciences
# * University of Dundee
# *
# * (c) 2015
# *
# * Author: Silke Henkes
# *
# * Department of Physics
# * Institute for Complex Systems and Mathematical Biology
# * University of Aberdeen
# *
# * (c) 2014, 2015
# *
# * This program cannot be used, copied, or modified without
# * explicit written permission of the authors.
# *
# * **************************************************************
# setup the CGAL static linkage
if(ENABLE_STATIC)
set(CGAL_BUILD_SHARED_LIBS "OFF")
else(ENABLE_STATIC)
set(CGAL_BUILD_SHARED_LIBS "ON")
endif(ENABLE_STATIC)
find_package(CGAL COMPONENTS Core )
if ( CGAL_FOUND )
include( ${CGAL_USE_FILE} )
include( CGAL_CreateSingleSourceCGALProgram )
set(FOUND_CGAL_LIBRARY true)
add_definitions(-DHAS_CGAL)
if (CGAL_MAJOR_VERSION LESS 5)
set(CXX_STANDARD 11)
else()
set(CXX_STANDARD 14)
endif()
else(CGAL_FOUND)
set(FOUND_CGAL_LIBRARY false)
endif(CGAL_FOUND)