-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (40 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by the script cgal_create_CMakeLists
# This is the CMake script for compiling a set of CGAL applications.
cmake_minimum_required(VERSION 3.12)
project(convertDigitalUoB_5 CXX)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_CXX_FLAGS "-O3")
#include for local directory
############################
file(
GLOB
source_files
src/*.h src/*.ih src/convertDigitalUoB.cpp
)
# ##################################################
add_executable(convertDigitalUoB ${source_files})
################## External libraries #################
## DGtal
########
FIND_PACKAGE(DGtal REQUIRED)
INCLUDE_DIRECTORIES(${DGTAL_INCLUDE_DIRS})
LINK_DIRECTORIES(${DGTAL_LIBRARY_DIRS})
## OpenMP
#########
find_package(OpenMP REQUIRED)
## CGAL and its components
##########################
find_package( CGAL QUIET COMPONENTS Core Qt5)
if ( NOT CGAL_FOUND )
message(STATUS "This project requires the CGAL library, and will not be compiled.")
return()
endif()
## Boost and its components
###########################
find_package( Boost REQUIRED )
if ( NOT Boost_FOUND )
message(STATUS "This project requires the Boost library, and will not be compiled.")
return()
endif()
###########################################################
target_link_libraries(convertDigitalUoB PRIVATE ${DGTAL_LIBRARIES} ${UNIONOFDISKS} OpenMP::OpenMP_CXX CGAL::CGAL_Core ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} CGAL::CGAL_Qt5 )