File: CMakeLists.txt

package info (click to toggle)
lief 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 16,036 kB
  • sloc: cpp: 76,013; python: 6,167; ansic: 3,355; pascal: 404; sh: 98; makefile: 32
file content (30 lines) | stat: -rw-r--r-- 872 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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_SYSTEM_NAME ${PLATFORM})
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_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/Welcome")


if (UNIX AND NOT APPLE)
  #set(CPACK_GENERATOR "TGZ;STGZ;DEB")
  set(CPACK_GENERATOR "TGZ")
  set(CPACK_SOURCE_GENERATOR "TGZ")
  #set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Romain Thomas")
endif()

if (UNIX AND APPLE)
  set(CPACK_GENERATOR "TGZ")
endif()

if (WIN32)
  set(CPACK_GENERATOR "ZIP")
endif()

include(CPack)