diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ae1216..cc72266 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,3 +20,8 @@ add_subdirectory(test) add_subdirectory(demo/chat) add_subdirectory(demo/msg_que) + +install( + DIRECTORY "include/" + DESTINATION "include" +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4dfae8e..e3618c8 100755 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,3 +32,8 @@ if(NOT MSVC) pthread $<$>:rt>) endif() + +install( + TARGETS ${PROJECT_NAME} + DESTINATION "lib" +)