1 # Copyright 2018 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)
7 project(cmake_subdir_test LANGUAGES CXX)
9 add_subdirectory(../.. boostorg/mp11)
11 add_executable(main main.cpp)
12 target_link_libraries(main Boost::mp11)
15 add_test(NAME main COMMAND main)
17 add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>)