gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

pack.cmake (506B)


      1 include(${CMAKE_CURRENT_LIST_DIR}/io.cmake)
      2 
      3 message(STATUS "Removing old packages")
      4 
      5 removeGlob("*.zip")
      6 removeGlob("*.deb")
      7 removeGlob("*.rpm")
      8 
      9 macro(pack GENERATOR)
     10 	message(STATUS "Packaging ${GENERATOR}")
     11 	set(PACK_RESULT 0)
     12 	execute_process(COMMAND cpack -G ${GENERATOR} 
     13 		COMMAND_ECHO STDOUT
     14 		RESULT_VARIABLE PACK_RESULT)
     15 	if(PACK_RESULT)
     16 		message(FATAL_ERROR "Failed to execute cpack: " ${PACK_RESULT})
     17 	endif()
     18 endmacro()
     19 
     20 pack("ZIP")
     21 
     22 if(UNIX AND NOT APPLE)
     23 	pack("DEB")
     24 	pack("RPM")
     25 endif()