1# Copyright 2020 Andrey Semashev 2# 3# Distributed under the Boost Software License, Version 1.0. 4# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt 5# 6# NOTE: This does NOT run the unit tests for Boost.Filesystem. 7# It only tests, if the CMakeLists.txt file in it's root works as expected 8 9cmake_minimum_required(VERSION 3.5) 10 11project(BoostFilesystemCMakeSelfTest) 12 13# Use experimental superproject to pull library dependencies recursively 14set(BOOST_ENABLE_CMAKE 1) 15add_subdirectory(../../../.. "${CMAKE_CURRENT_BINARY_DIR}/boost_superproject") 16 17add_definitions(-DBOOST_ALL_NO_LIB) 18 19add_executable(boost_filesystem_cmake_self_test main.cpp) 20target_link_libraries(boost_filesystem_cmake_self_test Boost::filesystem) 21