From 3c36d444729ee9285bb4ab0252968057bf904a8d Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 13 Aug 2010 22:32:07 -0400 Subject: Various cleanups to CMakeLists.txt files * Simplify endmacro(), endif() and else() statements * Remove unused and redundant code * Use AUTO_OS for holding the typesystem suffix (instead of MODULE_NAME) Reviewed-by: Luciano Wolf Reviewed-by: Hugo Parente Lima --- doc/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/CMakeLists.txt') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 7bad422df..37dc8d63c 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -43,7 +43,7 @@ COMMENT "Running generator to generate documentation of ${module}..." ) add_dependencies("${module}-apidoc" qdoc3) add_dependencies(apidoc "${module}-apidoc") -endmacro(create_doc module) +endmacro() create_doc(QtCore "") create_doc(QtGui "${QtCore_SOURCE_DIR}") @@ -79,11 +79,11 @@ add_custom_target(apidocinstall add_dependencies(apidocinstall apidevhelp) -else (NOT ${graphviz_exec} STREQUAL graphviz_exec-NOTFOUND) +else () message(STATUS "Missing graphviz tool (dot), apidoc generation targets disabled.") -endif (NOT ${graphviz_exec} STREQUAL graphviz_exec-NOTFOUND) +endif () -else (QT_SRC_DIR) +else () message(STATUS "QT_SRC_DIR variable not set, apidoc generation targets disabled.") -endif (QT_SRC_DIR) +endif () -- cgit v1.2.3