diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 00000000..2483832d --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +# Copyright 2018 Mike Dev +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5) +project(BoostConfig LANGUAGES CXX) + +add_library(boost_config INTERFACE) +add_library(Boost::config ALIAS boost_config) + +target_include_directories(boost_config INTERFACE include) diff --git a/test/cmake/CMakeLists.txt b/test/cmake/CMakeLists.txt new file mode 100644 index 00000000..a8cd7bf1 --- /dev/null +++ b/test/cmake/CMakeLists.txt @@ -0,0 +1,13 @@ +# Copyright 2018 Mike Dev +# Distributed under the Boost Software License, Version 1.0. +# See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5) +project(BoostFilesystem_test) + +add_subdirectory(../.. ${CMAKE_CURRENT_BINARY_DIR}/boost_config) + +add_executable(boost_config_cmake_compilation_test main.cpp) +target_link_libraries(boost_config_cmake_compilation_test Boost::config) + + diff --git a/test/cmake/main.cpp b/test/cmake/main.cpp new file mode 100644 index 00000000..ec7f32a3 --- /dev/null +++ b/test/cmake/main.cpp @@ -0,0 +1,7 @@ +// Copyright 2018 Mike Dev +// Distributed under the Boost Software License, Version 1.0. +// See accompanying file LICENSE_1_0.txt or copy at http ://www.boost.org/LICENSE_1_0.txt + +#include + +int main() {}