Use FIND_PACKAGE() to find QtUiTools instead of just hardcode the path

This commit is contained in:
Micke Prag 2011-11-04 10:33:09 +01:00
parent 290a805c6b
commit 4b37109f27

View file

@ -65,8 +65,9 @@ ADD_DEFINITIONS( -DVERSION=${DISPLAYED_VERSION} )
SET( telldus-center_TARGET TelldusCenter )
IF (APPLE) #### Mac OS X ####
FIND_PACKAGE(Qt4 COMPONENTS QtUiTools REQUIRED)
LIST(APPEND telldus-center_LIBRARIES
/usr/lib/libQtUiTools.a
${QT_QTUITOOLS_LIBRARY}
)
INCLUDE_DIRECTORIES(
/usr/include/QtUiTools