From badceb8dfa8b54ff6da55e9a2188da53ad1aa8e8 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 8 Apr 2018 14:52:40 +0200 Subject: Multithreading UrlRequestInterceptor - Add parse() free function to UrlRequestInterceptor - hostlists are loaded in parallel via QtConcurrent --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b9e25d..f582600 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ option(MercurialRepo "Get version information from .hg" ON) option(CompilerWarnings "Compiler warnings" ON) option(QtDeprecatedWarnings "Qt deprecated warnings" ON) option(UseLibCpp "Use libc++ over stdlibc++ (requires clang)" OFF) +option(Tests "Enable/disable some basic autotests" ON) # Libraries find_package(Qt5 COMPONENTS Core Widgets Concurrent REQUIRED) @@ -61,4 +62,10 @@ add_subdirectory(src) # configuration program add_subdirectory(config) +if (Tests) + enable_testing() + find_package(Qt5 COMPONENTS Test REQUIRED) + add_subdirectory(test) +endif() + feature_summary(WHAT ALL) -- cgit v1.2.1