From 7c7a0e07ca201f1f5dd51bf87d6c023dc9dc28f0 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 22 Jan 2006 10:29:20 +0000 Subject: -generate_findpackage_file: a script to simplify generating simple FindFoo.cmake files -FindLibXml2.cmake and FindLibXslt.cmake: modules to find libxml2 and libxslt, generated by the script above -some tuning in the other modules Alex svn path=/trunk/KDE/kdesdk/cmake/; revision=501125 --- kde4/KDE4Macros.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kde4/KDE4Macros.cmake') diff --git a/kde4/KDE4Macros.cmake b/kde4/KDE4Macros.cmake index fae370b9..10370a60 100644 --- a/kde4/KDE4Macros.cmake +++ b/kde4/KDE4Macros.cmake @@ -262,7 +262,10 @@ MACRO(KDE4_AUTOMOC) SET(_tmp_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${_current_FILE}) ENDIF(${_current_FILE} MATCHES "^/.+") +#message(STATUS "file: ${_tmp_FILE}") + IF (EXISTS ${_tmp_FILE}) +#message(STATUS "exists") FILE(READ ${_tmp_FILE} _contents) @@ -271,7 +274,9 @@ MACRO(KDE4_AUTOMOC) STRING(REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _match "${_contents}") IF(_match) +#message(STATUS "match 1") FOREACH (_current_MOC_INC ${_match}) +#message(STATUS "match 2") STRING(REGEX MATCH "[^ <\"]+\\.moc" _current_MOC "${_current_MOC_INC}") GET_FILENAME_COMPONENT(_basename ${_current_MOC} NAME_WE) -- cgit v1.2.1