Skip to content

Commit

Permalink
Adds a new option LIBZIPP_INSTALL_HEADERS
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Tabin committed Apr 18, 2020
1 parent 58946f4 commit d593370
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 d593370

Please sign in to comment.