aboutsummaryrefslogtreecommitdiff
path: root/test/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r--test/CMakeLists.txt19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ad2ca1f..a44da07 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -2,16 +2,13 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
-macro(create_test testname)
- add_executable(${testname}
- ${testname}.cpp ${testname}.h
- autotests.qrc
- ${ARGN})
+add_executable(UrlFilterTest
+ urlfilter/urlfiltertest.cpp
+ urlfilter/urlfiltertest.h
+)
- target_include_directories(${testname} PRIVATE ../lib PRIVATE ../src)
- target_link_libraries(${testname} Qt5::Test Qt5::Concurrent Qt5::WebEngineWidgets)
+target_include_directories(UrlFilterTest
+ PRIVATE ../lib/web
+)
- add_test(NAME smolbote-${testname} COMMAND ${testname})
-endmacro()
-
-create_test(HostlistTest ../src/webengine/urlinterceptor.cpp ../src/webengine/urlinterceptor.h)
+target_link_libraries(UrlFilterTest Qt5::Test web)