From b14167ad04091d90d2893bc9578a830e89ea09c1 Mon Sep 17 00:00:00 2001 From: amaitland Date: Fri, 12 May 2017 16:27:28 +1000 Subject: [PATCH] cmake: Don't require test projects with minimal distribution (issue #2169) --- CMakeLists.txt.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt.in b/CMakeLists.txt.in index 3b2a784f7..0b87db3c5 100644 --- a/CMakeLists.txt.in +++ b/CMakeLists.txt.in @@ -199,10 +199,12 @@ add_subdirectory(${CEF_LIBCEF_DLL_WRAPPER_PATH} libcef_dll_wrapper) # Include application targets. # Comes from the /CMakeLists.txt file in the current directory. # TODO: Change these lines to match your project target when you copy this file. -add_subdirectory(tests/cefclient) -add_subdirectory(tests/cefsimple) -add_subdirectory(tests/gtest) -add_subdirectory(tests/ceftests) +if(EXISTS tests) + add_subdirectory(tests/cefclient) + add_subdirectory(tests/cefsimple) + add_subdirectory(tests/gtest) + add_subdirectory(tests/ceftests) +endif() # Display configuration settings. PRINT_CEF_CONFIG()