Skip to content

iOS Multiple targets using Cmake? #2448

Closed Answered by rh101
AlexandreK38 asked this question in Q&A
Discussion options

You must be logged in to vote

There is one way to support multiple targets from the same CMakeLists.txt and source code, but you would need to generate separate project build files per target.

Several projects have used this method, one of them being The Lords of Midnight, which has the source code online, so you can review the CMakeLists.txt here to see how they achieve this. There was a discussion regarding how to pass the required parameters to the cmake command in order to set the right parameters for the specific target (such as the bundle ID etc.) here.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexandreK38
Comment options

Answer selected by halx99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants