-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
63 lines (49 loc) · 1.58 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
56
57
58
59
60
61
62
63
# This file is part of adept-utils.
#
# Copyright (C)
# 2010-2018 Lawrence Livermore National Laboratories, United States of America
#
# Written by Todd Gamblin, tgamblin@llnl.gov.
# LLNL-CODE-417602
#
# See the LICENSE file in the package base directory for details.
# minimum required CMake version
cmake_minimum_required(VERSION 2.8.12)
#
# project information
#
if (${CMAKE_MAJOR_VERSION} EQUAL 3)
project("adept-utils" LANGUAGES C CXX)
else ()
project("adept-utils" C CXX)
endif ()
# choose new behaviour for CMP0042
# see http://www.cmake.org/cmake/help/v3.0/policy/CMP0042.html for more details
if (POLICY CMP0042)
cmake_policy(SET CMP0042 NEW)
endif (POLICY CMP0042)
#
# cmake configuration
#
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
#
# Version information comes from here. Incrememnt these when new stuff happens.
#
set(ADEPT_UTILS_MAJOR_VERSION 0)
set(ADEPT_UTILS_MINOR_VERSION 1)
set(ADEPT_UTILS_PATCH_VERSION 0)
set(ADEPT_UTILS_VERSION "${ADEPT_UTILS_MAJOR_VERSION}.${ADEPT_UTILS_MINOR_VERSION}.${ADEPT_UTILS_PATCH_VERSION}")
# Muster requires boost for matrices and random number generators.
find_package(Boost)
# Configure a CMake file and set it to be installed. This file tells other
# projects how to use Adept Utils.
configure_file(adept_utils-config.cmake.in adept_utils-config.cmake @ONLY)
install(FILES ${PROJECT_BINARY_DIR}/adept_utils-config.cmake
DESTINATION share/cmake/adept_utils
)
install(EXPORT adept_utils-libs DESTINATION share/cmake/adept_utils)
#
# recurse into subdirectories
#
add_subdirectory(cutils)
add_subdirectory(utils)