diff options
author | Patrick Spendrin <ps_ml@gmx.de> | 2007-11-11 15:23:46 +0000 |
---|---|---|
committer | Patrick Spendrin <ps_ml@gmx.de> | 2007-11-11 15:23:46 +0000 |
commit | fcb850840ed38333a3b1ae4b79c676686e443dd9 (patch) | |
tree | 973a0a5f25c2a5293ce5f97da1c8a26d568d503f | |
parent | 70c3f27cd27aab0dc227bf23cd34a931cba8a54f (diff) | |
download | extra-cmake-modules-fcb850840ed38333a3b1ae4b79c676686e443dd9.tar.gz extra-cmake-modules-fcb850840ed38333a3b1ae4b79c676686e443dd9.tar.bz2 |
make freetype findable under windows
svn path=/trunk/KDE/kdelibs/; revision=735384
-rw-r--r-- | modules/FindFreetype.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/FindFreetype.cmake b/modules/FindFreetype.cmake index f061e71a..89b70a61 100644 --- a/modules/FindFreetype.cmake +++ b/modules/FindFreetype.cmake @@ -48,6 +48,14 @@ else (FREETYPE_LIBRARIES AND FREETYPE_INCLUDE_DIR) set( FREETYPE_LIBRARIES ${FREETYPE_LIBRARIES} CACHE INTERNAL "The libraries for freetype" ) + else(FREETYPECONFIG_EXECUTABLE) + find_path (FREETYPE_INCLUDE_DIR freetype/freetype.h + ${CMAKE_INCLUDE_PATH}/freetype2 + ) + find_library(FREETYPE_LIBRARIES freetype) + if(FREETYPE_INCLUDE_DIR AND FREETYPE_LIBRARIES) + set(FREETYPE_FOUND TRUE) + endif(FREETYPE_INCLUDE_DIR AND FREETYPE_LIBRARIES) endif(FREETYPECONFIG_EXECUTABLE) |