We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c18c463 commit 889bb4fCopy full SHA for 889bb4f
cmake/applebundle.cmake
@@ -0,0 +1,2 @@
1
+include(BundleUtilities)
2
+fixup_bundle("${TARGET_BUNDLE_DIR}" "" "")
cmake/darwin.cmake
@@ -1,5 +1,3 @@
-include(BundleUtilities)
-
3
#set(CMAKE_OSX_ARCHITECTURES "i386;x86_64")
4
5
macro(cp_osx_get_directory_size DIR OUTVAR)
@@ -70,4 +68,5 @@ macro(cp_osx_add_target_properties TARGET APPNAME VERSION VERSION_CODE)
70
68
cp_set_properties(${TARGET} MACOSX_BUNDLE_BUNDLE_NAME "${APPNAME}")
71
69
#cp_set_properties(${TARGET} MACOSX_BUNDLE TRUE)
72
cp_osx_generate_plist_file(${TARGET})
+ add_custom_command(TARGET ${TARGET} POST_BUILD COMMAND ${CMAKE_COMMAND} -DTARGET_BUNDLE_DIR=$<TARGET_BUNDLE_DIR:${TARGET}> -P "${ROOT_DIR}/cmake/applebundle.cmake" VERBATIM)
73
endmacro()
0 commit comments