-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (33 loc) · 1.71 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
#[[
* Permission is granted to copy, distribute and/or modify the documents
* in this directory and its subdirectories unless otherwise stated under
* the terms of the GNU Free Documentation License, Version 1.1 or any later version
* published by the Free Software Foundation; with no Invariant Sections,
* no Front-Cover Texts and no Back-Cover Texts. A copy of the license
* is available at the website of the GNU Project.
* The programs and code snippets in this directory and its subdirectories
* are free software; you can redistribute them and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option) any later
* version. This code is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* Author Marco M. Mosca, email: [email protected]
*]]
cmake_minimum_required (VERSION 3.8)
project ("VoronoiLatticeDistances")
message(STATUS "Project directory: ${CMAKE_CURRENT_SOURCE_DIR}")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
# set <Package>_DIR env variable to find <Package>Config.cmake files
find_package(Gemmi REQUIRED)
find_package(Eigen3 REQUIRED)
find_package(Boost REQUIRED)
find_package(VTK 8.2.0 PATHS "${CMAKE_CURRENT_SOURCE_DIR}/External/VTK-8.2.0/install" REQUIRED)
find_package(CGAL REQUIRED COMPONENTS Core MODULE)
set (WORKDIR "${CMAKE_BINARY_DIR}/Workdir"
CACHE INTERNAL "${PROJECT_NAME}: WorkDir" FORCE)
# Includere i sottoprogetti.
add_subdirectory ("CrystaLibrary")
add_subdirectory ("Main")