diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-08-16 16:40:06 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-08-17 11:08:25 -0300 |
commit | 09a2d2aaa6349df614752f10cd8663ad3a83aee5 (patch) | |
tree | 23ff755a3127b705ac1a1d2f6b90ea245efd22de /tests | |
parent | 16e7b284c2c93a18bc181296f7486baf13ab9f1f (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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0d28c4419..37c34ea3d 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() |