CMake for iOS. How to implement correctly Objective-C/Objective-CPP with CMake?
-
wrote on 10 Oct 2022, 09:20 last edited by
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?
-
wrote on 28 Oct 2022, 15:33 last edited by bogong
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.