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
5 cmake_minimum_required(VERSION 3.5...3.16)
7 project(cmake_subdir_test LANGUAGES CXX)
9 add_subdirectory(../.. boostorg/reegx)
10 add_subdirectory(../../../config boostorg/config)
11 add_subdirectory(../../../core boostorg/core)
12 add_subdirectory(../../../assert boostorg/assert)
13 add_subdirectory(../../../static_assert boostorg/static_assert)
14 add_subdirectory(../../../throw_exception boostorg/throw_exception)
15 add_subdirectory(../../../predef boostorg/predef)
17 add_executable(quick ../quick.cpp)
18 target_link_libraries(quick Boost::regex Boost::core)
23 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)