Build Project IOS #1372
-
I need to build an ios project, and there are also .swift files, of course a header file is needed, but it seems that Cmake cannot add .swift files, so how can I save the settings of the IOS project? I will need to upload some files in the build folder? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
What makes you think that? A quick online search for "cmake swift example", and you would see a few hundred thousand results showing you how this is done. The simplest way is to change the
Then you need to set several properties:
You just add the swift files as you would any other file, for example:
|
Beta Was this translation helpful? Give feedback.
What makes you think that?
A quick online search for "cmake swift example", and you would see a few hundred thousand results showing you how this is done.
The simplest way is to change the
project
at the top of your rootCMakeLists.txt
to this:Then you need to set several properties: