File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -600,7 +600,26 @@ if(CMAKE_BUILD_TYPE MATCHES "Release|RelWithDebInfo")
600
600
endif ()
601
601
endif ()
602
602
603
- include (GNUInstallDirs)
603
+ if (APPLE AND BUILD_APPLE_FRAMEWORK)
604
+ set_target_properties (ZXing PROPERTIES
605
+ FRAMEWORK TRUE
606
+ FRAMEWORK_VERSION "C"
607
+ XCODE_ATTRIBUTE_DEFINES_MODULE YES
608
+ XCODE_ATTRIBUTE_BUILD_LIBRARY_FOR_DISTRIBUTION YES
609
+ XCODE_ATTRIBUTE_MODULEMAP_FILE "wrappers/ios/Sources/Wrapper/module.modulemap"
610
+ XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
611
+ MACOSX_FRAMEWORK_IDENTIFIER "com.zxing-cpp.ios"
612
+ CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH NO
613
+ #MACOSX_FRAMEWORK_INFO_PLIST Info.plist
614
+ PUBLIC_HEADER "${PUBLIC_HEADERS} "
615
+ XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "iPhone Developer"
616
+ XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
617
+ )
618
+ endif ()
619
+
620
+ set (CMAKE_INSTALL_LIBDIR "lib" )
621
+ set (CMAKE_INSTALL_BINDIR "bin" )
622
+ set (CMAKE_INSTALL_INCLUDEDIR "include" )
604
623
605
624
set (ZX_INSTALL_TARGETS ZXing)
606
625
You can’t perform that action at this time.
0 commit comments