From 75d66e48d9746d2393360eaba52813ae42f913a9 Mon Sep 17 00:00:00 2001 From: itas109 Date: Wed, 9 Nov 2022 21:29:42 +0800 Subject: [PATCH] feat(libcserialport): only install need headers --- lib/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index aa316f3..6bcb5c9 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -68,12 +68,12 @@ elseif (UNIX) target_link_libraries( ${PROJECT_NAME} pthread) endif() -install(DIRECTORY ../include/CSerialPort DESTINATION include FILES_MATCHING PATTERN "*.h") +install(DIRECTORY ../include/CSerialPort DESTINATION include FILES_MATCHING PATTERN "*.h" PATTERN "*Base.h" EXCLUDE) install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib - ) + ARCHIVE DESTINATION lib +) install(FILES ../cserialport-config.cmake.in DESTINATION lib/cmake/CSerialPort RENAME cserialport-config.cmake) \ No newline at end of file