[Kst] branches/work/kst/portto4/kst/cmake
Peter Kümmel
syntheticpp at gmx.net
Sat Jan 8 16:13:21 CET 2011
SVN commit 1212907 by kuemmel:
unsuccessfull attempt to build a bundle on mac
M +4 -0 CMakeLists.txt
M +11 -1 src/kst/CMakeLists.txt
--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1212906:1212907
@@ -76,8 +76,12 @@
set(kst_qtmain_library ${QT_QTMAIN_LIBRARY})
endif()
+if(APPLE)
+ set(kst_win32 MACOSX_BUNDLE)
+endif()
+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
--- branches/work/kst/portto4/kst/cmake/src/kst/CMakeLists.txt #1212906:1212907
@@ -24,8 +24,18 @@
kst_link(kstcore kstmath kstapp kstwidgets ${QT_QTOPENGL_LIBRARY} ${QT_QTSVG_LIBRARY} ${kst_qtmain_library})
-install(TARGETS kst RUNTIME DESTINATION bin)
+install(TARGETS kst
+ RUNTIME DESTINATION bin
+ BUNDLE DESTINATION bin)
+
+if(APPLE)
+ #TODO does not work
+ set(bdir ${CMAKE_INSTALL_PREFIX}/bin ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/plugin)
+ set(blib ${CMAKE_INSTALL_PREFIX}/lib/libkstcore.dylib ${CMAKE_INSTALL_PREFIX}/lib/libkstapp.dylib ${CMAKE_INSTALL_PREFIX}/lib/libkstwidgets.dylib ${CMAKE_INSTALL_PREFIX}/lib/libkstmath.dylib)
+ install(CODE "include(BundleUtilities) fixup_bundle(kst \"${blib}\" \"${bdir}\")" COMPONENT RUNTIME)
+endif()
+
if(WIN32)
install(FILES
${QT_BINARY_DIR}/QtCore4.dll
More information about the Kst
mailing list