We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f311f commit da65617Copy full SHA for da65617
CMakeLists.txt
@@ -110,6 +110,7 @@ endif()
110
find_package(OpenCL QUIET)
111
112
option(BUILD_TRAINING_TOOLS "Build training tools" ON)
113
+option(BUILD_TESTS "Build tests" ON)
114
115
###############################################################################
116
#
@@ -300,7 +301,7 @@ target_link_libraries (tesseract libtesseract)
300
301
302
########################################
303
-if (EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
304
+if (BUILD_GTEST AND EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt)
305
add_subdirectory(googletest)
306
add_executable(tesseract_tests tests/tesseracttests.cpp)
307
target_link_libraries(tesseract_tests gtest_main)
0 commit comments