]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/nowide/test/cmake_test/CMakeLists.txt
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / nowide / test / cmake_test / CMakeLists.txt
CommitLineData
1e59de90
TL
1# Copyright 2021 Alexander Grund
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(cmake_subdir_test LANGUAGES CXX)
8
9# Those 2 should work the same
10# while using find_package for the installed Boost avoids the need to manually specify dependencies
11if(DEFINED BOOST_CI_INSTALL_TEST AND BOOST_CI_INSTALL_TEST)
12 find_package(boost_nowide 1.78 REQUIRED)
13elseif(DEFINED BOOST_NOWIDE_INSTALL_TEST AND BOOST_NOWIDE_INSTALL_TEST)
14 find_package(boost_nowide 11 REQUIRED)
15else()
16 add_subdirectory(../../../config boostorg/config)
17 add_subdirectory(../.. boostorg/nowide)
18endif()
19
20add_executable(main main.cpp)
21target_link_libraries(main Boost::nowide)
22
23enable_testing()
24add_test(NAME main COMMAND main)