mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Needed to readd the broctl/broccoli/binpac submodules manually, as git seemed to get confused by the existing directories.
23 lines
773 B
CMake
23 lines
773 B
CMake
# Sets the list of desired package types to be created by the make
|
|
# package target. A .tar.gz is always made, and depending on the
|
|
# operating system, more are added:
|
|
#
|
|
# Darwin - PackageMaker
|
|
# Linux - RPM if the platform has rpmbuild installed
|
|
# DEB is ommitted because CPack does not give enough
|
|
# control over how the package is created and lacks support
|
|
# for automatic dependency detection.
|
|
#
|
|
#
|
|
# CPACK_GENERATOR is set by this module
|
|
|
|
set(CPACK_GENERATOR TGZ)
|
|
set(CPACK_SOURCE_GENERATOR TGZ)
|
|
if (APPLE)
|
|
list(APPEND CPACK_GENERATOR PackageMaker)
|
|
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
|
find_program(RPMBUILD_EXE rpmbuild)
|
|
if (RPMBUILD_EXE)
|
|
set(CPACK_GENERATOR ${CPACK_GENERATOR} RPM)
|
|
endif ()
|
|
endif ()
|