I am trying to build a project using cmake
with clang
compiler.
I have already got the build working using xcode, where I am importing linker dependencies from MacOS frameworks like CoreFramework, Foundation etc. When I look at the linker command Xcode is using internally, I see that it is using
- framework CoreFoundation
- framework Foundation
Question: How to I port these linker to Cmake?
Example: When I am using lib libxxx.a, libyyy.a in the probject, xcode refers to those libraries as
-lxxx
-lyyy
the corrosponding linker commands for cmake is simply:
target_linked_libraries(project xxx yyy)