CMakeLists.txt 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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. cmake_minimum_required( VERSION 3.5 )
  8. project( BoostParameter LANGUAGES CXX)
  9. option(BOOST_PARAMETER_INCLUDE_TESTS OFF "Include Boost.Parameter tests")
  10. add_library( boost_parameter INTERFACE )
  11. add_library( Boost::parameter ALIAS boost_parameter )
  12. target_include_directories( boost_parameter INTERFACE include )
  13. target_link_libraries( boost_parameter
  14. INTERFACE
  15. Boost::config
  16. Boost::core
  17. Boost::function
  18. Boost::fusion
  19. # TODO: we only need mp11 or mpl
  20. Boost::mp11
  21. Boost::mpl
  22. Boost::optional
  23. Boost::preprocessor
  24. Boost::type_traits
  25. Boost::utility
  26. )
  27. if(BOOST_PARAMETER_INCLUDE_TESTS)
  28. enable_testing()
  29. add_subdirectory(test)
  30. endif()