From 4f5e150c61c7866fc1de79ec057c5f7bb402c5fc Mon Sep 17 00:00:00 2001 From: Gang Liang Date: Sun, 23 May 2021 10:38:42 -0700 Subject: [PATCH] Add install statements for headers and libipc --- CMakeLists.txt | 5 +++++ src/CMakeLists.txt | 5 +++++ 2 files changed, 10 insertions(+) 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" +)