[Kst] branches/work/kst/portto4/kst/cmake

Peter Kümmel syntheticpp at gmx.net
Sat Feb 12 19:48:43 CET 2011


SVN commit 1220057 by kuemmel:

add some comments

 M  +9 -6      CMakeLists.txt  


--- branches/work/kst/portto4/kst/cmake/CMakeLists.txt #1220056:1220057
@@ -280,26 +280,29 @@
 
 
 if(APPLE)
+	# We start from bin/kst2.app, all is build into the final bundle folder
+	# On the mac the pathes to needed shared libraries are hardcoded in the binary/library 
+	# which could be changed by the macro 'fixup_bundle' 
+	# libs which are hardcoded are resolved automatically
+	# but the plugins must be passed as extra argument because they are not hardcoded in the binary 
+
 	set(app ${CMAKE_BINARY_DIR}/bin/${kst_binary_name}.app)
 	set(contents_dir ${kst_binary_name}.app/Contents)
-	#TODO copy not intsall install(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION  ${contents_dir}/plugins COMPONENT Runtime)
+	#TODO copy not intsall! install(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION  ${contents_dir}/plugins COMPONENT Runtime)
 	
 	file(WRITE ${CMAKE_BINARY_DIR}/qt.conf "")
 	install(FILES ${CMAKE_BINARY_DIR}/qt.conf DESTINATION ${contents_dir}/Resources COMPONENT Runtime)
 	
-	
-	#set(bdir ${CMAKE_INSTALL_PREFIX} ${CMAKE_INSTALL_PREFIX}/lib ${CMAKE_INSTALL_PREFIX}/plugin)
 	install(CODE 
 		"file(GLOB qt_plugins \"\${CMAKE_INSTALL_PREFIX}/${contents_dir}/plugins/imageformats/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
 		file(GLOB kst_plugins \"${CMAKE_BINARY_DIR}/bin/${contents_dir}/plugins/*${CMAKE_SHARED_MODULE_SUFFIX}\")
 		set(libs \${qt_plugins_disbaled} \${kst_plugins})
 		include(BundleUtilities) 
-		fixup_bundle(\"${app}\" \"\${libs}\" \"${bdir}\") "
+		fixup_bundle(\"${app}\" \"\${libs}\" \"${dir}\") "
 		COMPONENT RUNTIME)
 		
-	#set(CPACK_STRIP_FILES OFF CACHE STRNG "" FORCE) 
 	set(CPACK_GENERATOR DragNDrop)
-	
 endif()
 
 include(CPack)
+


More information about the Kst mailing list