forked from isce-framework/fringe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (36 loc) · 1.11 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
###CMake for building FRInGE
###Make sure that symlinks are not being used.
###From GMT's cmake related files
get_filename_component (srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
get_filename_component (bindir "${CMAKE_BINARY_DIR}" REALPATH)
###Minimum cmake version
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif (POLICY CMP0048)
###Project
project( FRINGE
VERSION 0.1
LANGUAGES C CXX)
####!!!!-- Checking prerequisites --!!!!
###Add modules
list(APPEND CMAKE_MODULE_PATH ${FRINGE_SOURCE_DIR}/cmake)
#Set C++ Standard to use
set(CMAKE_CXX_STANDARD 11)
###Find gdal
FIND_PACKAGE(GDAL 3.0 REQUIRED)
###Find Armadillo
FIND_PACKAGE(Armadillo 8.100 REQUIRED)
###Find openmp
find_package(OpenMP COMPONENTS CXX)
###Find linalg
FIND_PACKAGE(LAPACK REQUIRED)
###Find python3
FIND_PACKAGE(Python 3.7 COMPONENTS Interpreter Development NumPy)
include(useCython)
###Include FRINGE specific paths
include (ConfigProject)
####!!!!-- End of checking prerequisites --!!!!
####!!!!--Start installation--!!!!
add_subdirectory (src)
add_subdirectory (python)