Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. CMake for iOS. How to implement correctly Objective-C/Objective-CPP with CMake?
Forum Updated to NodeBB v4.3 + New Features

CMake for iOS. How to implement correctly Objective-C/Objective-CPP with CMake?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 643 Views
  • 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.
  • B Offline
    B Offline
    bogong
    wrote on last edited by
    #1

    Hello all!
    Trying to find any info of how to implement correctly Objective-C/Objective-CPP with CMake. When using QMake everything works fine with something like this:

    ios {
    	OBJECTIVE_HEADERS += 
    	OBJECTIVE_SOURCES +=
    }
    

    How to implement it with CMake?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bogong
      wrote on last edited by bogong
      #2

      Solution found. Since CMake 3.16 Objective-C and Objective-C++ files could be recognised automatically. Here the release notes https://cmake.org/cmake/help/v3.16/release/3.16.html But it will require to write much more code in CMake file than in QMake. The detailed information here https://gitlab.kitware.com/cmake/cmake/-/merge_requests/3811

      Got published example of simple Objective-C/Objective-C++ using in Qt with CMake.

      Issue closed. Happy iOS coding for everyone.

      1 Reply Last reply
      1

      • Login

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