CMake: Properly link against the proper frameworks on OS X.

This commit is contained in:
Sam Edwards 2014-03-02 21:57:15 -07:00
parent 301ee4b8c3
commit 0bcce442c3
1 changed files with 6 additions and 0 deletions

View File

@ -56,4 +56,10 @@ if(HAVE_PYTHON)
target_link_libraries(p3dtoolutil ${PYTHON_LIBRARIES})
endif()
if(APPLE)
find_library(FOUNDATION_LIBRARY Foundation)
find_library(APPKIT_LIBRARY AppKit)
target_link_libraries(p3dtoolutil ${FOUNDATION_LIBRARY} ${APPKIT_LIBRARY})
endif()
install(TARGETS p3dtoolutil DESTINATION lib)