-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
55 lines (42 loc) · 1.57 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
cmake_minimum_required(VERSION 3.22)
project(campo
VERSION 0.3.12
DESCRIPTION "Modelling framework for fields and agents"
HOMEPAGE_URL "https://campo.computationalgeography.org/"
LANGUAGES NONE
)
set(CMAKE_MODULE_PATH
$ENV{CMAKE_MODULE_PATH}
${CMAKE_CURRENT_SOURCE_DIR}/environment/cmake
)
set(DEV_CURRENT_YEAR "2024")
set(${PROJECT_NAME}_ORGANISATION_NAME "Computational Geography group, Dept. of Physical Geography, Utrecht University")
set(${PROJECT_NAME}_COPYRIGHT
"2020 - ${DEV_CURRENT_YEAR}, ${${PROJECT_NAME}_ORGANISATION_NAME}")
find_package(Python 3.8
REQUIRED COMPONENTS Interpreter
)
include(FetchContent)
enable_testing()
option(
CAMPO_BUILD_WHEEL
"Campo build wheel"
OFF
)
if(NOT ${CAMPO_INSTALL_DIR})
set(CAMPO_INSTALL_DIR ${CAMPO_INSTALL_DIR})
else()
set(CAMPO_INSTALL_DIR ${CMAKE_BINARY_DIR}/package)
endif()
add_subdirectory(source)
add_subdirectory(documentation)
message(STATUS "-------------------------------------------------")
message(STATUS "Campo configuration summary:")
message(STATUS " Version: " ${${PROJECT_NAME}_VERSION})
message(STATUS " Installation directory: " ${CAMPO_INSTALL_DIR} )
message(STATUS " Build configuration:")
message(STATUS " Python interpreter: " ${Python_EXECUTABLE})
message(STATUS " Python version: " ${Python_VERSION_MAJOR}.${Python_VERSION_MINOR}.${Python_VERSION_PATCH})
message(STATUS " Site-packages: " ${Python_SITELIB})
message(STATUS " Build wheel : " ${CAMPO_BUILD_WHEEL} )
message(STATUS "-------------------------------------------------")