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