I have written a small helloworld program that needs the Cocoa framework. I'd like to know how to add a framework in CMake. All the information I have found is out-of-date. I have CMake 2.8.1 on Snow Leopard.
相关问题
- Xcode debugger displays incorrect values for varia
- Is there a way to report errors in Apple documenta
- Advice for supporting both Mac and Windows Desktop
- Avoid cmake to add the flags -search_paths_first a
- CMakeList file to generate LLVM bitcode file from
相关文章
- 现在使用swift开发ios应用好还是swift?
- Visual Studio Code, MAC OS X, OmniSharp server is
- xcode 4 garbage collection removed?
- IntelliJ IDEA can't open projects or add SDK o
- Automator: How do I use the Choose from List actio
- ImportError: No module named twisted.persisted.sty
- How can I vertically align my status bar item text
- git command-line on Mac OS error “dyld: Symbol not
another solution: https://stackoverflow.com/a/18330634/2482283
Can you just use
find_library
like this:find_library(COCOA_LIBRARY Cocoa)
?Then use
${COCOA_LIBRARY}
in yourtarget_link_libraries
. Possibly setting theCMAKE_FIND_FRAMEWORK
variable toONLY
.Also, refer to this article: How to use existing OSX frameworks.