KDE/kdelibs/cmake/modules

Alexander Neundorf neundorf at kde.org
Tue May 16 18:54:33 CEST 2006


SVN commit 541576 by neundorf:

-a new cmake module which contains two macros:

MACRO_LOG_FEATURE(VAR FEATURE DESCRIPTION URL)
 Logs the information so that it can be displayed at the end
 of the configure run
 VAR : variable which is TRUE or FALSE indicating whether the feature is supported
 FEATURE: name of the feature, e.g. "libjpeg"
 DESCRIPTION: description what this feature provides
 URL: home page

MACRO_DISPLAY_FEATURE_LOG()
 Call this at the end of the toplevel CMakeLists.txt to display the collected results


Example:

 INCLUDE(MacroLogFeature)

 FIND_PACKAGE(JPEG)
 MACRO_LOG_FEATURE(JPEG_FOUND "libjpeg" "Support JPEG images" "http://www.ijg.org")
 ...
 MACRO_DISPLAY_FEATURE_LOG()


Alex

CCMAIL:kde-buildsystem at kde.org




 A             MacroLogFeature.cmake  




More information about the Kde-buildsystem mailing list