Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cmake to compile comm.cpp. Add support of CMake install. #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)