Here's some
examples for you to refer to. Basically cinterop requires some prior knowledge of how cmake finds correct headers and shared libraries to compile and link against. Most commonly used ones are these, google the rest:
• [compileOpt]
-I/path/to/some/dir/that/has/header/files
this adds a directory to discover *.h files from
• [linkerOpt]
-L/path/to/some/shared/lib/dir
this adds a directory to discover shared libraries from (e.g.
*.so
)
• [linkerOpt]
-lmyLibName
this tells which libs to link against (should be discoverable from path defined by some sys defaults +
-L
args above)
Hope this helps, I've never actually done any apple development to tell you more. All this is coming from my experience with K/N desktop targets, but the process should be similar.