+ set(MACOSX_BUNDLE TRUE)
+ # This sets the bundle + executable names
+ set(_lyx "${PACKAGE_BASE}${LYX_INSTALL_SUFFIX}")
+ # This sets the Info.plist executable name
+ set(osx_bundle_program_name ${_lyx})
+ # Bundle name
+ set(LYX_BUNDLE_NAME ${_lyx})
+
+ # This will contain the list of files that need to be included
+ # in the bundle and their location within the bundle
+ set(OSX_BUNDLE_FILES "${TOP_SRC_DIR}/development/MacOSX/LyX.sdef;${TOP_SRC_DIR}/development/MacOSX/LyXapp.icns;${CMAKE_BINARY_DIR}/lyxrc.dist")
+ set(OSX_BUNDLE_DIRS "Resources;Resources;Resources")
+
+ # Process Info.plist and lyxrc.dist
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/development/MacOSX/Info.plist.in" "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
+ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/development/MacOSX/lyxrc.dist.in" "${CMAKE_CURRENT_BINARY_DIR}/lyxrc.dist")
+