ML wrote:
Hi Michael,
I still get the same compile errors as before. But works using Xcode for
me.
Is there another resource as I can't find an example of these basic
things on the wiki. Even Google searching is not really turning up much.
I did find:http://www.vtk.org/Wiki/CMake:HowToUseExistingOSXFrameworks
which is how I structured my first example but alas nothing. Even for
this list I few people replied with ideas none that seem to work.
I would appreciate pointers!
Folks, CMake is framework aware. You don't need to add the -F stuff.
You can either use a full path to a framework in include_directories or
in target_link_libraries. Find_library will also find frameworks.
The following will work:
find_library(CARBON NAMES Carbon)
add_executable(foo foo.cxx)
target_link_libraries(foo ${CARBON})
-Bill
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake