[CMake] Installing OSX Frameworks
Bill Hoffman
bill.hoffman at kitware.com
Wed Jul 23 15:54:02 EDT 2008
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
More information about the CMake
mailing list