CMakeLists.txt 907 B

123456789101112131415161718192021222324252627282930
  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.Exception 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( BoostException LANGUAGES CXX )
  9. # We treat Boost.Exception as header only for now.
  10. # See https://github.com/boostorg/exception/pull/17
  11. # for more information.
  12. add_library( boost_exception INTERFACE )
  13. add_library( Boost::exception ALIAS boost_exception )
  14. target_include_directories( boost_exception INTERFACE include )
  15. target_link_libraries( boost_exception
  16. INTERFACE
  17. Boost::assert
  18. Boost::config
  19. Boost::core
  20. Boost::smart_ptr
  21. Boost::throw_exception
  22. Boost::tuple
  23. Boost::type_traits
  24. )