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_fetch_test LANGUAGES CXX) 8 9include("${CMAKE_CURRENT_SOURCE_DIR}/../../include/BoostFetch.cmake") 10 11include(CTest) 12add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) 13 14set(BUILD_TESTING OFF) # hide cache variable 15 16boost_fetch(boostorg/assert TAG develop EXCLUDE_FROM_ALL) 17boost_fetch(boostorg/config TAG develop EXCLUDE_FROM_ALL) 18boost_fetch(boostorg/core TAG develop EXCLUDE_FROM_ALL) 19 20unset(BUILD_TESTING) 21 22add_executable(main main.cpp) 23target_link_libraries(main Boost::core) 24 25add_test(NAME main COMMAND main) 26