-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
42 lines (33 loc) · 1.16 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
cmake_minimum_required(VERSION 3.9)
# Set the project name. The chosen project name must be in CamelCase. Your CMake
# tree must then provide a properly namespaced target with the same name as
# your project.
project(Swoose
VERSION 2.1.0
DESCRIPTION "This is the SCINE module Swoose."
)
# Set the module path for universal cmake files inclusion
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/dev/cmake)
# Component setup
include(ComponentSetup)
scine_setup_component()
# Enable testing
if(SCINE_BUILD_TESTS)
enable_testing()
endif()
option(SWOOSE_COMPILE_SPARROW "Will download and build Sparrow (the SCINE semi-empirical module)." OFF)
if(SWOOSE_COMPILE_SPARROW)
include(ImportSparrow)
import_sparrow()
endif()
option(SWOOSE_COMPILE_XTB "Will download and build xTB (the SCINE xTB module)." OFF)
if(SWOOSE_COMPILE_XTB)
include(ImportXtb)
import_xtb()
endif()
option(SCINE_USE_MKL "Use the optimized MKL library for linear algebra operations of Eigen" OFF)
option(SWOOSE_COMPILE_DATABASE "Compile Swoose with SCINE database support" OFF)
# Subdirectories
add_subdirectory(src)
# Documentation
scine_component_documentation(UtilsOSDocumentation)