I have write a small helloworld program that needs cocoa framework. I'd like to know how to add framework in cmake. All the information I have found is out-of-date. I have cmake 2.8.1 on snow leopard.
A:
can you just use FIND_LIBRARY(COCOA_LIBRARY Cocoa)
? Then include ${COCOA_LIBRARY}
in your target_link_libraries
. Possibly setting CMAKE_FIND_FRAMEWORK
to "ONLY"
http://www.itk.org/Wiki/CMake:HowToUseExistingOSXFrameworks
Stack Overflow won't let me post more than one link, but also look at the CMake 2.8 documentation #command:find_library
choobablue
2010-06-04 19:41:09