Hello,
i am using cmake on MacOs.
I would like to create .dmg to distribute the StandAlone application. What is the lines of code to write in CMakeLists.txt?
Remark: to create the .pkg for the AU plugin, i write the following lines, so i guess there is a similar solution, but unfortunately i am a very beginner with cmake:
set(CMAKE_INSTALL_PREFIX /)
set(CPACK_PACKAGING_INSTALL_PREFIX /)
install(TARGETS Tonnetz_MidiFX_AU Tonnetz_Synth_AU Tonnetz_Analyzer_AU
LIBRARY DESTINATION Library/Audio/Plug-Ins/Components
COMPONENT AU)
install(TARGETS Tonnetz_MidiFX_VST3 Tonnetz_Synth_VST3 Tonnetz_Analyzer_VST3
LIBRARY DESTINATION Library/Audio/Plug-Ins/VST3
COMPONENT VST3)
# most CPACK_xxx vars are guessed from project properties
set(CPACK_GENERATOR productbuild)
set(CPACK_PACKAGE_VENDOR Fred)
include(CPack)