diff options
author | Sebastian Sauer <mail@dipe.org> | 2006-10-20 20:40:35 +0000 |
---|---|---|
committer | Sebastian Sauer <mail@dipe.org> | 2006-10-20 20:40:35 +0000 |
commit | a8d3b4befd09e934bc863de957a4b75dfd80d7f1 (patch) | |
tree | bd374dec7672983e3921c9b0535b026d5ab35004 /modules | |
parent | f56160b3608225df97b09a8742f3c11bc90a4371 (diff) | |
download | extra-cmake-modules-a8d3b4befd09e934bc863de957a4b75dfd80d7f1.tar.gz extra-cmake-modules-a8d3b4befd09e934bc863de957a4b75dfd80d7f1.tar.bz2 |
one step closer to get it compiling with mingw.
svn path=/trunk/KDE/kdelibs/; revision=597592
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index a313d2c1..232b6159 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -192,10 +192,11 @@ set(QT_MIN_VERSION "4.2.0") #this line includes FindQt4.cmake, which searches the Qt library and headers find_package(Qt4 REQUIRED) -if (NOT QT_DBUSXML2CPP_EXECUTABLE) - message(FATAL_ERROR "Qt4 qdbusxml2cpp was not found. Make sure it has been built and installed by Qt") -endif (NOT QT_DBUSXML2CPP_EXECUTABLE) - +if (NOT WIN32) + if (NOT QT_DBUSXML2CPP_EXECUTABLE) + message(FATAL_ERROR "Qt4 qdbusxml2cpp was not found. Make sure it has been built and installed by Qt") + endif (NOT QT_DBUSXML2CPP_EXECUTABLE) +endif (NOT WIN32) # Perl is required for building KDE software, find_package(Perl REQUIRED) @@ -508,6 +509,13 @@ if (WIN32) set( _KDE4_PLATFORM_INCLUDE_DIRS ${KDEWIN32_INCLUDES} ${GNUWIN32_INCLUDE_DIR}) + # for the zlib-library. we define it direct rather then using FindZLIB.cmake + # here cause currently we are using the kdewin32-directory as location where + # they should be stored. without those additional definitions cmake with + # mingw breaks compiling. + set(ZLIB_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(ZLIB_LIBRARY "${KDEWIN32_LIBRARIES}/zlib.lib") + # if we are compiling kdelibs, add KDEWIN32_LIBRARIES explicitely, # otherwise they come from KDELibsDependencies.cmake, Alex if(EXISTS ${CMAKE_SOURCE_DIR}/kdecore/kglobal.h) |