• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 Mike Dev
2# Distributed under the Boost Software License, Version 1.0.
3# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
4#
5# NOTE: CMake support for Boost.Parameter is currently experimental at best
6#       and the interface is likely to change in the future
7
8cmake_minimum_required( VERSION 3.5 )
9project( BoostParameter LANGUAGES CXX)
10
11option(BOOST_PARAMETER_INCLUDE_TESTS OFF "Include Boost.Parameter tests")
12
13add_library( boost_parameter INTERFACE )
14add_library( Boost::parameter ALIAS boost_parameter )
15
16target_include_directories( boost_parameter INTERFACE include )
17
18target_link_libraries( boost_parameter
19    INTERFACE
20        Boost::config
21        Boost::core
22        Boost::function
23        Boost::fusion
24        # TODO: we only need mp11 or mpl
25        Boost::mp11
26        Boost::mpl
27        Boost::optional
28        Boost::preprocessor
29        Boost::type_traits
30        Boost::utility
31)
32
33if(BOOST_PARAMETER_INCLUDE_TESTS)
34    enable_testing()
35    add_subdirectory(test)
36endif()
37