KDE/kdesdk/cmake/modules

Alexander Neundorf neundorf at kde.org
Mon Jan 16 22:50:43 CET 2006


SVN commit 499066 by neundorf:

use the new pkg-config cmake module in the libart module

the support for pkg-config was added with a custom cmake module (i.e. script, no editing of C++ sources involved)
since somebody asked me, whether pkg-config is supported by cmake, ccmail to the mailinglist
CCMAIL: kde-buildsystem at kde.org

Alex




 M  +9 -0      FindLibArt.cmake  


--- trunk/KDE/kdesdk/cmake/modules/FindLibArt.cmake #499065:499066
@@ -1,11 +1,20 @@
+INCLUDE(UsePkgConfig)
 
+# use pkg-config to get the directories and then use these values
+# in the FIND_PATH() and FIND_LIBRARY() calls
+PKGCONFIG(libart-2.0 _libArtIncDir _libArtLinkDir _libArtLinkFlags _libArtCflags)
+
+SET(LIBART_DEFINITIONS ${_libArtCflags})
+
 FIND_PATH(LIBART_INCLUDE_DIR libart_lgpl/libart.h
+${_libArtIncDir}/libart-2.0
 /usr/include/libart-2.0
 /usr/local/include/libart-2.0
 )
 
 FIND_LIBRARY(LIBART_LIBRARY NAMES art_lgpl_2
 PATHS
+${_libArtLinkDir}
 /usr/lib
 /usr/local/lib
 )


More information about the Kde-buildsystem mailing list