aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-16 16:40:06 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-17 11:08:25 -0300
commit09a2d2aaa6349df614752f10cd8663ad3a83aee5 (patch)
tree23ff755a3127b705ac1a1d2f6b90ea245efd22de
parent16e7b284c2c93a18bc181296f7486baf13ab9f1f (diff)
Do not compiles doc generator when ApiExtractor doesn't have support for
doc strings. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
-rw-r--r--generators/CMakeLists.txt4
-rw-r--r--tests/CMakeLists.txt32
2 files changed, 20 insertions, 16 deletions
diff --git a/generators/CMakeLists.txt b/generators/CMakeLists.txt
index f26def27..81f1c63f 100644
--- a/generators/CMakeLists.txt
+++ b/generators/CMakeLists.txt
@@ -1 +1,3 @@
-add_subdirectory(qtdoc)
+if (NOT APIEXTRACTOR_DOCSTRINGS_DISABLED)
+ add_subdirectory(qtdoc)
+endif()
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0d28c441..37c34ea3 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -1,20 +1,22 @@
-project(sphinxtabletest)
+if (NOT APIEXTRACTOR_DOCSTRINGS_DISABLED)
+ project(sphinxtabletest)
-# TODO
-set(sphinxtabletest_SRC sphinxtabletest.cpp)
-qt4_automoc(${sphinxtabletest_SRC})
+ # TODO
+ set(sphinxtabletest_SRC sphinxtabletest.cpp)
+ qt4_automoc(${sphinxtabletest_SRC})
-include_directories(${QT_INCLUDE_DIR}
- ${QT_QTCORE_INCLUDE_DIR}
- ${CMAKE_CURRENT_BINARY_DIR}
- ${qtdoc_generator_SOURCE_DIR})
+ include_directories(${QT_INCLUDE_DIR}
+ ${QT_QTCORE_INCLUDE_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${qtdoc_generator_SOURCE_DIR})
-add_executable(sphinxtabletest ${sphinxtabletest_SRC})
+ add_executable(sphinxtabletest ${sphinxtabletest_SRC})
-target_link_libraries(sphinxtabletest
- ${QT_QTTEST_LIBRARY}
- ${APIEXTRACTOR_LIBRARY}
- qtdoc_generator
- genrunner)
+ target_link_libraries(sphinxtabletest
+ ${QT_QTTEST_LIBRARY}
+ ${APIEXTRACTOR_LIBRARY}
+ qtdoc_generator
+ genrunner)
-add_test("sphinxtable" sphinxtabletest)
+ add_test("sphinxtable" sphinxtabletest)
+endif()