-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
52 lines (45 loc) · 1.31 KB
/
CMakeLists.txt
File metadata and controls
52 lines (45 loc) · 1.31 KB
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
# Generated by `boostdep --cmake msm`
# Copyright 2020 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required(VERSION 3.12...3.16)
project(boost_msm VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX)
add_library(boost_msm INTERFACE)
add_library(Boost::msm ALIAS boost_msm)
target_include_directories(boost_msm INTERFACE include)
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(BOOST_MSM_IS_ROOT ON)
else()
set(BOOST_MSM_IS_ROOT OFF)
endif()
if(NOT BOOST_MSM_IS_ROOT)
target_link_libraries(boost_msm
INTERFACE
Boost::any
Boost::assert
Boost::bind
Boost::circular_buffer
Boost::config
Boost::core
Boost::function
Boost::fusion
Boost::mp11
Boost::mpl
Boost::parameter
Boost::phoenix
Boost::preprocessor
Boost::proto
Boost::serialization
Boost::tuple
Boost::type_traits
Boost::typeof
)
else()
# Boost 1.66 is the first version with Mp11
find_package(Boost 1.66 REQUIRED COMPONENTS serialization)
target_link_libraries(boost_msm INTERFACE Boost::boost Boost::serialization)
endif()
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
enable_testing()
add_subdirectory(test)
endif()