Skip to content

Commit

Permalink
Merge pull request #62 from ctabin/install-vcpkg
Browse files Browse the repository at this point in the history
Adds a new option LIBZIPP_INSTALL_HEADERS
  • Loading branch information
ctabin authored Apr 18, 2020
2 parents 58946f4 + d593370 commit f57510e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit f57510e

Please sign in to comment.