CMakeLists.txt 771 B

12345678910111213141516171819202122
  1. # Copyright 2018, 2019 Peter Dimov
  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. cmake_minimum_required(VERSION 3.5)
  5. project(cmake_subdir_test LANGUAGES CXX)
  6. add_subdirectory(../.. boostorg/system)
  7. add_subdirectory(../../../assert boostorg/assert)
  8. add_subdirectory(../../../config boostorg/config)
  9. add_subdirectory(../../../core boostorg/core)
  10. add_subdirectory(../../../predef boostorg/predef)
  11. add_subdirectory(../../../winapi boostorg/winapi)
  12. add_executable(quick ../quick.cpp)
  13. target_link_libraries(quick Boost::system Boost::core)
  14. enable_testing()
  15. add_test(quick quick)
  16. add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)