2
0
mirror of https://github.com/boostorg/cmake.git synced 2026-01-25 06:02:13 +00:00
Files
cmake/test/bind/CMakeLists.txt
2024-07-13 21:13:18 +03:00

20 lines
566 B
CMake

# Copyright 2018, 2019, 2023 Peter Dimov
# Distributed under the Boost Software License, Version 1.0.
# https://www.boost.org/LICENSE_1_0.txt
cmake_minimum_required(VERSION 3.5...3.16)
project(boost_bind_install_test LANGUAGES CXX)
# Test use of Boost::headers instead of Boost::bind
find_package(boost_headers REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main Boost::headers)
enable_testing()
add_test(NAME main COMMAND main)
add_custom_target(check VERBATIM COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure --no-tests=error -C $<CONFIG>)