cmake: make it compile on OS X

This commit is contained in:
Eugene Shalygin
2016-03-12 03:49:34 +01:00
committed by sledgehammer999
parent 509d97b0ad
commit 3ab76cb985
4 changed files with 81 additions and 11 deletions

View File

@@ -124,3 +124,8 @@ else (QT4_FOUND)
target_link_libraries(qbt_base Qt5::Gui Qt5::Widgets)
endif (GUI)
endif (QT4_FOUND)
if (APPLE)
find_library(IOKit_LIBRARY IOKit)
find_library(Carbon_LIBRARY Carbon)
target_link_libraries(qbt_base ${Carbon_LIBRARY} ${IOKit_LIBRARY})
endif (APPLE)