Disable some dependencies explicitly on Mac.

This commit is contained in:
John Maguire 2010-12-14 17:07:41 +00:00
parent 21415ff230
commit aec65c86b6
1 changed files with 6 additions and 3 deletions

View File

@ -11,7 +11,10 @@ find_package(Qt4 4.5.0 REQUIRED QtCore QtGui QtOpenGL QtSql QtNetwork QtXml)
if(UNIX AND NOT APPLE)
find_package(Qt4 REQUIRED QtDbus)
endif(UNIX AND NOT APPLE)
find_package(Qt4 COMPONENTS Phonon QtWebKit)
if(NOT APPLE)
find_package(Qt4 COMPONENTS Phonon QtWebKit)
endif(NOT APPLE)
# Find Qt's lconvert binary. Try qt's binary dir first, fall back to looking in PATH
find_program(QT_LCONVERT_EXECUTABLE NAMES lconvert lconvert-qt4 PATHS ${QT_BINARY_DIR} NO_DEFAULT_PATH)
@ -135,9 +138,9 @@ if(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
set(HAVE_LIBGPOD ON)
endif(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
if(ENABLE_GIO AND GIO_FOUND)
if(ENABLE_GIO AND GIO_FOUND AND NOT APPLE)
set(HAVE_GIO ON)
endif(ENABLE_GIO AND GIO_FOUND)
endif(ENABLE_GIO AND GIO_FOUND AND NOT APPLE)
if(ENABLE_IMOBILEDEVICE AND IMOBILEDEVICE_FOUND AND PLIST_FOUND AND HAVE_LIBGPOD AND USBMUXD_FOUND)
set(HAVE_IMOBILEDEVICE ON)