-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (29 loc) · 841 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (29 loc) · 841 Bytes
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 2.6)
# set default cmake build type to Release (None Debug Release RelWithDebInfo MinSizeRel)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CPP11_FLAG -std=c++11)
if( APPLE )
set(LIBS ${LIBS} "-L/opt/local/lib")
include_directories(/opt/local/include)
else()
#set(LIBS ${LIBS} "-L/usr/local/lib")
endif()
set(LIBS ${LIBS} "-lsqlite3" "-lmpfr" "-lgmp")
find_package(CGAL)
if (CGAL_FOUND)
include_directories(${CGAL_INCLUDE_DIRS})
set(TET_SOURCES
convexes.cpp
gjk.cpp
kmeans.cpp
tettest.cpp
vec.cpp
CGALStuff.cpp
)
set_source_files_properties(${TET_SOURCES} PROPERTIES COMPILE_FLAGS "${CPP11_FLAG}")
add_executable(tet ${TET_SOURCES})
message("${CGAL_LIBRARY}")
target_link_libraries (tet ${CGAL_LIBRARY} ${LIBS})
endif (CGAL_FOUND)