mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-04 17:00:11 -05:00
28 lines
1.3 KiB
CMake
28 lines
1.3 KiB
CMake
# make dist
|
|
# cmake --build . --target package_source
|
|
|
|
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
|
|
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
|
|
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "OpenSSL based Authenticode signing for PE, CAB, CAT and MSI files")
|
|
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
|
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
|
|
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING.txt")
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")
|
|
set(CPACK_SOURCE_GENERATOR "TGZ")
|
|
set(CPACK_SOURCE_IGNORE_FILES "\.git/;\.gitignore")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "Makefile")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "CMakeCache.txt")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "CMakeFiles")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "CPackConfig.cmake")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "CPackSourceConfig.cmake")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "CTestTestfile.cmake")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "cmake_install.cmake")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "config.h")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "/CMakeFiles/")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "/Testing/")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "/_CPack_Packages/")
|
|
list(APPEND CPACK_SOURCE_IGNORE_FILES "/build/")
|
|
|
|
include(CPack)
|
|
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
|