set(CPACK_PACKAGE_NAME "LIEF") set(CPACK_PACKAGE_VENDOR "Quarkslab") set(CPACK_PACKAGE_VERSION_MAJOR "${LIEF_VERSION_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${LIEF_VERSION_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${LIEF_VERSION_PATCH}") set(CPACK_PACKAGE_VERSION "${LIEF_VERSION_MAJOR}.${LIEF_VERSION_MINOR}.${LIEF_VERSION_PATCH}") set(CPACK_PACKAGE_CONTACT "rthomas@quarkslab.com") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "LIEF - Library to Instrument Executable Formats") set(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE") set(CPACK_PACKAGE_HOMEPAGE_URL "https://lief.quarkslab.com") if (UNIX) set(CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}") endif() if(UNIX AND NOT APPLE) # Linux set(CPACK_GENERATOR "TGZ") set(CPACK_SOURCE_GENERATOR "TGZ") endif() if(UNIX AND APPLE) # OSX / iOS set(CPACK_GENERATOR "TGZ") endif() if(WIN32) # Windows set(CPACK_GENERATOR "ZIP") endif() include(CPack)