aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKDE3.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-01-29 22:03:40 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-01-29 22:03:40 +0000
commit667a03d2082372d02ee661f716b764baa028f2a8 (patch)
tree49a7648a48d706304772ff7d4488abb2d3c33be7 /modules/FindKDE3.cmake
parent2f0842c4d9419a47aa1637909fc68cb709116690 (diff)
downloadextra-cmake-modules-667a03d2082372d02ee661f716b764baa028f2a8.tar.gz
extra-cmake-modules-667a03d2082372d02ee661f716b764baa028f2a8.tar.bz2
prepare support for the windows port
update the kde3 cmake files Alex svn path=/trunk/KDE/kdelibs/; revision=503684
Diffstat (limited to 'modules/FindKDE3.cmake')
-rw-r--r--modules/FindKDE3.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/FindKDE3.cmake b/modules/FindKDE3.cmake
index f5be090d..dba73688 100644
--- a/modules/FindKDE3.cmake
+++ b/modules/FindKDE3.cmake
@@ -31,7 +31,8 @@ SET(QT_MT_REQUIRED TRUE)
#SET(QT_MIN_VERSION "3.0.0")
#this line includes FindQt.cmake, which searches the Qt library and headers
-INCLUDE(FindQt3)
+FIND_PACKAGE(Qt3 REQUIRED)
+FIND_PACKAGE(X11 REQUIRED)
#add the definitions found by FindQt to the current definitions
#ADD_DEFINITIONS(${QT_DEFINITIONS} -DQT_CLEAN_NAMESPACE)
@@ -42,9 +43,9 @@ SET(QT_AND_KDECORE_LIBS ${QT_LIBRARIES} kdecore)
SET(KDE3_DEFINITIONS -DQT_CLEAN_NAMESPACE -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common)
#only on linux, but not e.g. on FreeBSD:
-IF(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
SET(KDE3_DEFINITIONS ${KDE3_DEFINITIONS} -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_GNU_SOURCE)
-ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
#SET(CMAKE_SHARED_LINKER_FLAGS "-avoid-version -module -Wl,--no-undefined -Wl,--allow-shlib-undefined")
@@ -65,7 +66,8 @@ FIND_PATH(KDE3_INCLUDE_DIR kurl.h
)
#now the KDE library directory
-FIND_PATH(KDE3_LIB_DIR libkdecore.so
+FIND_LIBRARY(KDE3_LIB_DIR NAMES kdecore
+ PATHS
$ENV{KDEDIR}/lib
/opt/kde/lib
/opt/kde3/lib