Bill Hoffman wrote:

Which is then used during the install phase by calling it as a script something like this:

  install(CODE "set(input_file

\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${APP_BUNDLE_LOCATION}/APP.app/Contents/MacOS/APP\")") install(CODE "set(lib_path \"${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}\") ")
  INSTALL(SCRIPT
    "${CMAKE_MODULES}/GetPrerequisites.cmake")


CMake itself uses a variant of this script for creating cmake-gui on the mac. See the CMakeLists.txt file in QtDialog:

    INSTALL(CODE "set(input_file

\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/MacOS/${CMAKE_BUNDLE_NAME}\")")
INSTALL(SCRIPT "${CMake_SOURCE_DIR}/Source/QtDialog/CMakeIngestOSXBundleLibraries.cmake")

-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to