From 90d319492826972571aa0a7e1a36a46f32d45b70 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 1 Jun 2021 21:46:03 +0300 Subject: [PATCH] Add CMakeLists.txt --- CMakeLists.txt | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..098b4cc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +# Generated by `boostdep --cmake coroutine2` +# Copyright 2020 Peter Dimov +# Distributed under the Boost Software License, Version 1.0. +# https://www.boost.org/LICENSE_1_0.txt + +cmake_minimum_required(VERSION 3.5...3.16) + +project(boost_coroutine2 VERSION "${BOOST_SUPERPROJECT_VERSION}" LANGUAGES CXX) + +add_library(boost_coroutine2 INTERFACE) +add_library(Boost::coroutine2 ALIAS boost_coroutine2) + +target_include_directories(boost_coroutine2 INTERFACE include) + +target_link_libraries(boost_coroutine2 + INTERFACE + Boost::assert + Boost::config + Boost::context +) + +if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt") + + add_subdirectory(test) + +endif() +