From d5933706f4c83d6b97da223c6607749e1c34a1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Tabin?= Date: Sat, 18 Apr 2020 12:33:37 +0200 Subject: [PATCH] Adds a new option LIBZIPP_INSTALL_HEADERS --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d2c103d..6294786 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ else() endif() option(LIBZIPPP_INSTALL "Install library" ${is_root_project}) +option(LIBZIPPP_INSTALL_HEADERS "Install the headers" ${is_root_project}) option(LIBZIPPP_BUILD_TESTS "Build unit tests" ${is_root_project}) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") @@ -56,7 +57,9 @@ if(LIBZIPPP_INSTALL) RUNTIME DESTINATION bin ) - install(FILES src/libzippp.h DESTINATION include/libzippp) + if(LIBZIPPP_INSTALL_HEADERS) + install(FILES src/libzippp.h DESTINATION include/libzippp) + endif() include(CMakePackageConfigHelpers)