From 796cd7ab569aa4d778cee5f40e4f1708ffd523ee Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 24 Jul 2017 17:59:12 +0200 Subject: [PATCH] cmake: Add googletest The submodule is build automatically as soon as it exists. Signed-off-by: Stefan Weil --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 079d8482ce..8c67aee498 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,6 +252,10 @@ target_link_libraries (tesseract libtesseract) ######################################## +if (EXISTS ${PROJECT_SOURCE_DIR}/googletest/CMakeLists.txt) + add_subdirectory(googletest) +endif() + if (BUILD_TRAINING_TOOLS) add_subdirectory(training) endif()