cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

add cmake support

Open madmongo1 opened this issue 3 years ago • 2 comments

Includes installer which creates a namespaced export

Usage:

cmake_minimum_required(VERSION 3.16)

project(cppcoro-check)

find_package(cppcoro REQUIRED)

add_executable(check main.cpp)
target_link_libraries(check cppcoro::cppcoro)

Tested on fedora-33 linux with clang-11 -std=c++20 -stdlib=libc++

madmongo1 avatar Nov 18 '20 08:11 madmongo1

Hi, there is already a PR for this co_awaiting for review here.

If you want to make suggestions/contribution to it I would suggest you to PR directly on andreasbuhr branch. This branch integrates contributions many from people, tested on msvc, clang and gcc.

Garcia6l20 avatar Nov 18 '20 19:11 Garcia6l20

OK, great that it's already in progress. I had written this cmake script so that I could test the library and felt it was polite to offer it back upstream.

madmongo1 avatar Nov 18 '20 19:11 madmongo1