|
AUI Framework
master
Cross-platform base for C++ UI apps
|
APP_NAME populates the following CMake variables (if undefined):
CPACK_BUNDLE_NAME = ${APP_NAME} CPACK_PACKAGE_EXECUTABLES = "${_executable};${APP_NAME}" CPACK_PACKAGE_INSTALL_DIRECTORY = ${APP_NAME} CPACK_PACKAGE_NAME = ${APP_NAME} MACOSX_BUNDLE_BUNDLE_NAME = ${APP_NAME} MACOSX_BUNDLE_EXECUTABLE_NAME = ${APP_NAME} The following additional variables and properties are affected:
_auib_weak_set_target_property(${APP_TARGET} CPACK_DESKTOP_SHORTCUTS "${APP_NAME}")set(APP_APPLE_BUNDLE_IDENTIFIER ${APP_NAME})set(EXECUTABLE_NAME ${APP_NAME})set(PRODUCT_NAME ${APP_NAME})set(_desktop "[Desktop Entry]\nName=${APP_NAME}\nExec=${_executable}\nType=Application\nTerminal=false\nCategories=Utility")set_property(INSTALL bin/$<TARGET_FILE_NAME:${APP_TARGET}> PROPERTY CPACK_DESKTOP_SHORTCUTS "${APP_NAME}")set_property(INSTALL bin/$<TARGET_FILE_NAME:${APP_TARGET}> PROPERTY CPACK_START_MENU_SHORTCUTS "${APP_NAME}")set_target_properties(${APP_TARGET} PROPERTIES OUTPUT_NAME "${APP_NAME}") # rename the bundle to display name