Merge pull request #8 from Mike-Devel/min_cmake

[CMake] Generate cmake target that other libraries can use
This commit is contained in:
Peter Dimov
2018-09-20 14:16:24 +03:00
committed by GitHub

17
CMakeLists.txt Normal file
View File

@ -0,0 +1,17 @@
# 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(BoostThrowException LANGUAGES CXX)
add_library(boost_throw_exception INTERFACE)
add_library(Boost::throw_exception ALIAS boost_throw_exception)
target_include_directories(boost_throw_exception INTERFACE include)
target_link_libraries(boost_throw_exception
INTERFACE
Boost::assert
Boost::config
)