diff --git a/share/Info.plist b/share/Info.plist new file mode 100644 index 00000000..e2322bf7 --- /dev/null +++ b/share/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + juCi++ + CFBundleGetInfoString + + CFBundleIconFile + + CFBundleIdentifier + com.github.cppit.juci + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + + CFBundleName + juci + CFBundlePackageType + APPL + CFBundleShortVersionString + + CFBundleSignature + ???? + CFBundleVersion + + CSResourcesFileMapped + + LSRequiresCarbon + + NSHumanReadableCopyright + + NSHighResolutionCapable + + + diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 86bf9613..e65cc813 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -155,3 +155,21 @@ if(DOXYGEN_FOUND) COMMENT "Generating API documentation with Doxygen to ${CMAKE_CURRENT_BINARY_DIR}" VERBATIM ) endif(DOXYGEN_FOUND) + +if(APPLE) + # setup Application Package + get_filename_component(InfoPlistFile "../share/Info.plist" ABSOLUTE) + set(APP_PROPERTIES + MACOSX_BUNDLE TRUE + MACOSX_BUNDLE_INFO_PLIST ${InfoPlistFile} + OUTPUT_NAME "juCi++" + ) + set_target_properties(${project_name} PROPERTIES ${APP_PROPERTIES}) + # add symlink of executable inside app package for terminal usage + set(TARGET_FILE $) + set(TARGET_FILE_DIR $) + add_custom_command(TARGET ${project_name} + POST_BUILD + COMMAND ln -sf "${TARGET_FILE}" "${TARGET_FILE_DIR}/../../../juci" + ) +endif()