]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | # Copyright 2018, 2019, 2021 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 | ||
5 | cmake_minimum_required(VERSION 3.5...3.16) | |
6 | ||
7 | project(boost_iostreams_install_test LANGUAGES CXX) | |
8 | ||
9 | if(BOOST_RUNTIME_LINK STREQUAL "static") | |
10 | set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | |
11 | endif() | |
12 | ||
13 | find_package(boost_iostreams REQUIRED) | |
14 | ||
15 | add_executable(test_fd test_fd.cpp) | |
16 | target_link_libraries(test_fd Boost::iostreams Boost::core) | |
17 | ||
18 | enable_testing() | |
19 | add_test(NAME test_fd COMMAND test_fd WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | |
20 | ||
21 | add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $<CONFIG>) |