2019-02-25 15:09:36 +01:00
|
|
|
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
|
2016-08-31 13:41:13 +02:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
find_program(CHOCO_BINARY choco)
|
|
|
|
|
|
|
|
configure_file(icinga2.nuspec.cmake icinga2.nuspec)
|
|
|
|
configure_file(chocolateyInstall.ps1.cmake chocolateyInstall.ps1)
|
|
|
|
|
|
|
|
add_custom_target(choco-pkg ALL
|
|
|
|
COMMAND choco pack
|
2019-04-04 12:55:52 +02:00
|
|
|
COMMAND ${CMAKE_COMMAND} -E rename ${CMAKE_CURRENT_BINARY_DIR}/icinga2.${ICINGA2_VERSION_SAFE}.nupkg ${CMAKE_CURRENT_BINARY_DIR}/icinga2.nupkg
|
2017-12-13 11:35:38 +01:00
|
|
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/icinga2.nuspec ${CMAKE_CURRENT_BINARY_DIR}/chocolateyInstall.ps1 chocolateyUninstall.ps1
|
2016-08-31 13:41:13 +02:00
|
|
|
)
|
|
|
|
endif()
|