include xc framework in cmake
- 
Hi there,
I am currently working on an app using QT. I'm struggling with including the xc framework into cmake. How do i include an ios dependency in xc framework or even in a .framework format using cmake for qt6. I've tried several different ways of including the dependency but none seem to work.
Any help would be greatly appreciated please.Thanks,
 - 
Hi there,
I am currently working on an app using QT. I'm struggling with including the xc framework into cmake. How do i include an ios dependency in xc framework or even in a .framework format using cmake for qt6. I've tried several different ways of including the dependency but none seem to work.
Any help would be greatly appreciated please.Thanks,
Hi,
Are you looking for cmake's target_link_libraries instruction ?
 - 
Hi,
Are you looking for cmake's target_link_libraries instruction ?
 - 
Hi there,
I am currently working on an app using QT. I'm struggling with including the xc framework into cmake. How do i include an ios dependency in xc framework or even in a .framework format using cmake for qt6. I've tried several different ways of including the dependency but none seem to work.
Any help would be greatly appreciated please.Thanks,
I eventually got it working, had to add this to set_target_properties as well as having it in target link libraries.
#location of framework your looking to install
XCODE_EMBED_FRAMEWORKS "${CMAKE_CURRENT_SOURCE_DIR}/lib/BRLMPrinterKit.framework"
#require otherwise it will fail if code is not found
XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON
XCODE_ATTRIBUTE_SIGNING_ALLOWED TRUE
#location of the library in the app file after its copied
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks" - 
L Louise has marked this topic as solved on
 - 
I eventually got it working, had to add this to set_target_properties as well as having it in target link libraries.
#location of framework your looking to install
XCODE_EMBED_FRAMEWORKS "${CMAKE_CURRENT_SOURCE_DIR}/lib/BRLMPrinterKit.framework"
#require otherwise it will fail if code is not found
XCODE_EMBED_FRAMEWORKS_CODE_SIGN_ON_COPY ON
XCODE_ATTRIBUTE_SIGNING_ALLOWED TRUE
#location of the library in the app file after its copied
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/Frameworks"