| 1 |
greg |
1.1 |
if("${CMAKE_VERSION}" VERSION_LESS "2.8.5") |
| 2 |
|
|
# older CMake, add to CMAKE_MODULE_PATH, use local BundleUtilities and GetPrerequisites |
| 3 |
|
|
set(CMAKE_MODULE_PATH "@CMAKE_CURRENT_SOURCE_DIR@" ${CMAKE_MODULE_PATH}) |
| 4 |
|
|
endif() |
| 5 |
|
|
|
| 6 |
|
|
function(gp_item_default_embedded_path_override path) |
| 7 |
|
|
set(path "@executable_path" PARENT_SCOPE) |
| 8 |
|
|
endfunction() |
| 9 |
|
|
|
| 10 |
|
|
include(BundleUtilities) |
| 11 |
|
|
|
| 12 |
greg |
1.3 |
set(plugins "") |
| 13 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qgif_plugin@") |
| 14 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qico_plugin@") |
| 15 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qjpeg_plugin@") |
| 16 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qmng_plugin@") |
| 17 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qsvg_plugin@") |
| 18 |
|
|
list(APPEND plugins "$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/bin/plugins/imageformats/@qtiff_plugin@") |
| 19 |
|
|
|
| 20 |
greg |
1.4 |
fixup_bundle("${CMAKE_INSTALL_PREFIX}/bin/rtrace@CMAKE_EXECUTABLE_SUFFIX@" "${plugins}" "@QT_LIBRARY_DIR@;@X11_LIBRARY_DIR@;@TIFF_LIBRARY_DIRS@") |