Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. include xc framework in cmake
Forum Updated to NodeBB v4.3 + New Features

include xc framework in cmake

Scheduled Pinned Locked Moved Solved Qt 6
5 Posts 3 Posters 1.5k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Louise
    wrote on last edited by
    #1

    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,

    SGaistS L 2 Replies Last reply
    0
    • L Louise

      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,

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Are you looking for cmake's target_link_libraries instruction ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      L 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Are you looking for cmake's target_link_libraries instruction ?

        L Offline
        L Offline
        Louise
        wrote on last edited by
        #3

        @SGaist got that working already but it doesn't include the library in the package so the app fails to run

        1 Reply Last reply
        0
        • L Louise

          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,

          L Offline
          L Offline
          Louise
          wrote on last edited by
          #4

          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"

          J 1 Reply Last reply
          1
          • L Louise has marked this topic as solved on
          • L Louise

            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"

            J Offline
            J Offline
            jhayar
            wrote on last edited by
            #5

            @Louise , hi

            If you don't mind can you share your sample CMAKE , i have FacebookSDK pulled using cocoapod , there's also .framework but i don't know how to include it using CMAKE ?

            thanks

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved