zeal/pkg/wix/cpack_pre_build.cmake
2023-09-11 01:17:10 -04:00

19 lines
386 B
CMake

if(CPACK_SOURCE_INSTALLED_DIRECTORIES)
message(DEBUG "Skipping package signing for source package generator.")
return()
endif()
# TODO: Automatically generate list.
set(_file_list
"zeal.exe"
"archive.dll"
"zlib1.dll"
"sqlite3.dll"
)
include(CodeSign)
foreach(_file ${_file_list})
codesign(FILES "${CPACK_TEMPORARY_DIRECTORY}/${_file}" QUIET)
endforeach()