From 90a0dd6b7550d93b01cd6bed8df545354e56f990 Mon Sep 17 00:00:00 2001 From: Charles Prevot Date: Tue, 8 Dec 2015 10:26:57 +0800 Subject: [PATCH] cmake additionally install cmake config --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7edbc1e..f9c94a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1048,6 +1048,12 @@ if (NOT LWS_WITHOUT_TESTAPPS AND NOT LWS_WITHOUT_SERVER) COMPONENT examples) endif() +# Install the LibwebsocketsConfig.cmake and LibwebsocketsConfigVersion.cmake +install(FILES + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/LibwebsocketsConfig.cmake" + "${PROJECT_BINARY_DIR}/LibwebsocketsConfigVersion.cmake" + DESTINATION "${LWS_INSTALL_CMAKE_DIR}" COMPONENT dev) + # build subdir is not part of sources set(CPACK_SOURCE_IGNORE_FILES $(CPACK_SOURCE_IGNORE_FILES) ".git" "build" "tgz" "tar.gz") -- 2.7.4