From b2eec437cd920a43800a51efe4e5c50113ea795a Mon Sep 17 00:00:00 2001 From: youmetme <321640253@qq.com> Date: Mon, 25 Nov 2024 22:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=AE=89=E8=A3=85=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 6 ++++++ src/CMakeLists.txt | 1 + 2 files changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b62db78..61dd1cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,3 +24,9 @@ if (TEST) enable_testing() add_subdirectory(tests) endif() + + +install(FILES include/logging.h DESTINATION include) +install(FILES include/logging/logging-core.h DESTINATION include/logging) +install(FILES include/logging/logging-filter.h DESTINATION include/logging) +install(FILES include/logging/logging-handler.h DESTINATION include/logging) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 30a7898..991bba3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -11,3 +11,4 @@ else() add_library(${PROJECT_NAME} ${SRC}) endif() +install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib) \ No newline at end of file