From 4b37109f279b3517d8d152423aa0b8d6245954b7 Mon Sep 17 00:00:00 2001 From: Micke Prag Date: Fri, 4 Nov 2011 10:33:09 +0100 Subject: [PATCH] Use FIND_PACKAGE() to find QtUiTools instead of just hardcode the path --- telldus-gui/TelldusCenter/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telldus-gui/TelldusCenter/CMakeLists.txt b/telldus-gui/TelldusCenter/CMakeLists.txt index 7aa29d22..f610ee08 100644 --- a/telldus-gui/TelldusCenter/CMakeLists.txt +++ b/telldus-gui/TelldusCenter/CMakeLists.txt @@ -64,9 +64,10 @@ ADD_DEFINITIONS( -DVERSION=${DISPLAYED_VERSION} ) SET( telldus-center_TARGET TelldusCenter ) -IF (APPLE) #### Mac OS X #### +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