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(boost_assert_install_test LANGUAGES CXX) 8 9find_package(boost_assert REQUIRED) 10 11add_executable(main main.cpp) 12target_link_libraries(main Boost::assert) 13 14enable_testing() 15add_test(NAME main COMMAND main) 16 17add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) 18