Enforce Cocoa requirement.

This commit is contained in:
John Maguire 2010-04-19 09:42:30 +00:00
parent 4948050327
commit ca84b47361
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,12 @@ if(UNIX AND NOT APPLE)
endif(UNIX AND NOT APPLE)
find_package(Qt4 COMPONENTS Phonon)
if(APPLE)
if(NOT QT_MAC_USE_COCOA)
message(FATAL_ERROR "Cocoa support is required")
endif(NOT QT_MAC_USE_COCOA)
endif(APPLE)
find_package(OpenGL REQUIRED)
find_package(Boost REQUIRED)
find_package(Gettext REQUIRED)