diff --git a/CMakeLists.txt b/CMakeLists.txt index 516cd557..204cdce7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,8 +95,9 @@ TARGET_LINK_LIBRARIES(qlibc PRIVATE ${CMAKE_THREAD_LIBS_INIT}) TARGET_LINK_LIBRARIES(qlibcext-static PRIVATE ${CMAKE_THREAD_LIBS_INIT}) TARGET_LINK_LIBRARIES(qlibcext PUBLIC qlibc) -INSTALL(DIRECTORY ${qlibc_SOURCE_DIR}/include/qlibc DESTINATION include) -INSTALL(TARGETS qlibc LIBRARY DESTINATION lib) -INSTALL(TARGETS qlibc-static LIBRARY DESTINATION lib) -INSTALL(TARGETS qlibcext LIBRARY DESTINATION lib) -INSTALL(TARGETS qlibcext-static LIBRARY DESTINATION lib) +SET(QLIBC_HEADER "${qlibc_SOURCE_DIR}/include/qlibc") +INSTALL(DIRECTORY ${QLIBC_HEADER} DESTINATION include) +INSTALL(TARGETS qlibc LIBRARY DESTINATION lib) +INSTALL(TARGETS qlibcext LIBRARY DESTINATION lib) +INSTALL(TARGETS qlibc-static ARCHIVE DESTINATION lib) +INSTALL(TARGETS qlibcext-static ARCHIVE DESTINATION lib)