CMakeLists.txt 950 B

123456789101112131415161718192021222324252627
  1. # Copyright 2018 John Maddock
  2. # Distributed under the Boost Software License, Version 1.0.
  3. # See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
  4. #
  5. # CAUTION!!!!
  6. #
  7. # This addition to Boost.Config should be considered experimental and is part
  8. # of an ongoing effort to add CMake support Boost-wide.
  9. #
  10. # IT IS HIGHLY LIKELY THAT THIS FILE WILL CHANGE WITHOUT NOTICE!!!
  11. #
  12. # DO NOT REPLY ON THE CONTENTS OF THIS FILE!!!
  13. #
  14. # In particular this is not a comprehensive test suite, just a quick check
  15. # that the root CMakeLists.txt works OK, and a convenience for folks who
  16. # want to import these projects into their IDE.
  17. #
  18. cmake_minimum_required(VERSION 3.5)
  19. add_subdirectory(.. ${CMAKE_CURRENT_BINARY_DIR}/boost_config)
  20. add_executable(config_info config_info.cpp)
  21. target_link_libraries(config_info Boost::config)
  22. add_executable(config_test config_test.cpp)
  23. target_link_libraries(config_test Boost::config)