summaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt32
1 files changed, 17 insertions, 15 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 0d28c44..37c34ea 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()