From d5488c08d7f4d13b0fd4ba68669e803497c52c2d Mon Sep 17 00:00:00 2001 From: tkoniy Date: Mon, 7 Mar 2022 10:21:05 +0000 Subject: [PATCH] Fix cmake to compile comm.cpp. Add support of CMake install. --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 04399a5..8a566be 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,7 @@ enable_language(C ASM) # Add source files set(SOURCE_FILES + co_comm.cpp co_epoll.cpp co_hook_sys_call.cpp co_routine.cpp @@ -53,3 +54,17 @@ add_example_target(poll) add_example_target(setenv) add_example_target(specific) add_example_target(thread) + + +install(TARGETS + colib_static + colib_shared + DESTINATION lib) +install(FILES + co_closure.h + co_comm.h + co_epoll.h + co_routine_inner.h + co_routine_specific.h + co_routine.h + DESTINATION include/libco) \ No newline at end of file