-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
43 lines (32 loc) · 1.09 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
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(Kiwi
VERSION 1.0.0
DESCRIPTION "Module for multicomponent and singlecomponent Hartree-Fock and post-Hartree-Fock methods."
)
# This is due to a bug in the gtest library.
set(USE_NO_MAYBE_UNINITIALIZED 0)
set(USE_NO_UNINITIALIZED 0)
# 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()
# Set rpaths of shared libraries if generated
if(APPLE)
set(CMAKE_BUILD_RPATH "@loader_path")
set(CMAKE_INSTALL_RPATH "@loader_path/../lib;@loader_path")
elseif(UNIX)
set(CMAKE_BUILD_RPATH "\$ORIGIN")
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib;\$ORIGIN")
endif()
# Subdirectories
add_subdirectory(src)
# Documentation
scine_component_documentation(UtilsOSDocumentation)