-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
46 lines (38 loc) · 1.51 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
##########################################################################
# Copyright (C) 2011 Daniel Pfeifer <[email protected]> #
# #
# Distributed under the Boost Software License, Version 1.0. #
# See accompanying file LICENSE_1_0.txt or copy at #
# http://www.boost.org/LICENSE_1_0.txt #
##########################################################################
cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
project(BoostCMake NONE)
list(APPEND CMAKE_MODULE_PATH "${BoostCMake_SOURCE_DIR}/modules")
set(Boost_RESOURCE_PATH "${BoostCMake_SOURCE_DIR}/resources")
include(BoostExport)
if(WIN32)
set(boost_data_dir ".")
else(WIN32)
set(boost_data_dir "share/boost")
endif(WIN32)
install(
FILES
${Boost_SOURCE_DIR}/BoostComponents.cmake
${Boost_SOURCE_DIR}/BoostConfig.cmake
${Boost_SOURCE_DIR}/BoostConfigVersion.cmake
${Boost_SOURCE_DIR}/UseBoost.cmake
DESTINATION "${boost_data_dir}"
COMPONENT "${BOOST_RUNTIME_COMPONENT}"
)
# make the binary directory usable...
file(COPY modules resources DESTINATION .)
install(DIRECTORY modules resources
DESTINATION "${boost_data_dir}"
COMPONENT "${BOOST_RUNTIME_COMPONENT}"
)
boost_export(CODE
"set(Boost_MODULE_PATH \"\${CMAKE_CURRENT_LIST_DIR}/../cmake/modules\")\n"
"set(Boost_RESOURCE_PATH \"\${CMAKE_CURRENT_LIST_DIR}/../cmake/resources\")\n"
)
add_subdirectory(doc)
add_subdirectory(test)