blob: 6b740d770c5c4d4ed86552d294175a9feceefe85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
add_executable(AdBlockTest
adblock/adblocktest.cpp
adblock/adblocktest.h
)
target_include_directories(AdBlockTest PRIVATE ../lib/urlfilter)
target_link_libraries(AdBlockTest Qt5::Test urlfilter)
add_executable(HostlistTest
hostlist/hostlisttest.cpp
hostlist/hostlisttest.h
)
target_include_directories(HostlistTest PRIVATE ../lib/urlfilter/)
target_link_libraries(HostlistTest Qt5::Test urlfilter)
add_test(NAME urlfilter-adblock COMMAND AdBlockTest WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
add_test(NAME urlfilter-hostlist COMMAND HostlistTest WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
|