• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5cmake_minimum_required(VERSION 3.5...3.16)
6
7project(cmake_subdir_test LANGUAGES CXX)
8
9add_subdirectory(../.. boostorg/bind)
10add_subdirectory(../../../assert boostorg/assert)
11add_subdirectory(../../../config boostorg/config)
12add_subdirectory(../../../core boostorg/core)
13
14add_executable(quick ../quick.cpp)
15target_link_libraries(quick Boost::bind Boost::core)
16
17enable_testing()
18add_test(quick quick)
19
20add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)
21