mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2025-10-19 10:23:17 +00:00
CMake, Windows: install News, Readme, and html as UserManual
For Windows to match 0.103 installer behavior, include NEWS.md and README.md and rename the html directory to UserManual during the install. Unfortunately I can't match the behavior for the main page for the user manual. It is now called index.html instead of UserManual.html and is inside the UserManual directory instead of at the top level.
This commit is contained in:
parent
23dfe8fc4c
commit
382ac2764c
2 changed files with 9 additions and 2 deletions
|
@ -315,6 +315,13 @@ if (WIN32)
|
|||
SET(CPACK_WIX_CMAKE_PACKAGE_REGISTRY ClamAV)
|
||||
set(CPACK_PACKAGE_INSTALL_DIRECTORY "ClamAV")
|
||||
|
||||
install(
|
||||
FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/NEWS.md
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/README.md
|
||||
DESTINATION "."
|
||||
COMPONENT documentation)
|
||||
|
||||
elseif(APPLE)
|
||||
set(CPACK_GENERATOR productbuild)
|
||||
set(CPACK_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}.macos.universal)
|
||||
|
|
|
@ -109,8 +109,8 @@ endif()
|
|||
# which is exported from the clamav-faq repo.
|
||||
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/html/index.html)
|
||||
if(WIN32)
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html
|
||||
DESTINATION .
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html/
|
||||
DESTINATION ./UserManual
|
||||
COMPONENT documentation)
|
||||
else()
|
||||
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue