diff options
author | Sebastian Sauer <mail@dipe.org> | 2006-10-20 21:41:42 +0000 |
---|---|---|
committer | Sebastian Sauer <mail@dipe.org> | 2006-10-20 21:41:42 +0000 |
commit | fd0a49550e4d3038fb9cd972019eecc9db196a25 (patch) | |
tree | a530795cba27438489c8c94490db7a3d2a98a711 | |
parent | a8d3b4befd09e934bc863de957a4b75dfd80d7f1 (diff) | |
download | extra-cmake-modules-fd0a49550e4d3038fb9cd972019eecc9db196a25.tar.gz extra-cmake-modules-fd0a49550e4d3038fb9cd972019eecc9db196a25.tar.bz2 |
and again some more steps closer to get it compile with mingw...
svn path=/trunk/KDE/kdelibs/; revision=597596
-rw-r--r-- | modules/FindKDE4Internal.cmake | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 232b6159..03d37923 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -509,13 +509,6 @@ 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) @@ -524,7 +517,27 @@ if (WIN32) # windows, mingw if(MINGW) - #hmmm, something special to do here ? + # FindZLIB.cmake + set(ZLIB_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(ZLIB_LIBRARY "${KDEWIN32_LIBRARIES}/zlib.lib") + # FindPCRE.cmake + set(PCRE_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(PCRE_LIBRARIES "${KDEWIN32_LIBRARIES}/pcre.lib") + # FindLibXml2.cmake + set(LIBXML2_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(LIBXML2_LIBRARIES "${KDEWIN32_LIBRARIES}/libxml2.lib") + # FindLibXslt.cmake + set(LIBXSLT_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(LIBXSLT_LIBRARIES "${KDEWIN32_LIBRARIES}/libxslt.lib") + # FindJPEG.cmake + set(JPEG_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(JPEG_LIBRARY "${KDEWIN32_LIBRARIES}/jpeg.lib") + # FindGIF.cmake + set(GIF_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(GIF_LIBRARIES "${KDEWIN32_LIBRARIES}/giflib.lib") + # FindPNG.cmake + set(PNG_PNG_INCLUDE_DIR ${KDEWIN32_INCLUDES}) + set(PNG_LIBRARY "${KDEWIN32_LIBRARIES}/libpng.lib") endif(MINGW) # windows, microsoft compiler |