Commit dfc063a4 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

Fix tests with new ecm sytle

parent f9ec5425
......@@ -17,6 +17,8 @@ set (KF5_MIN_VERSION "5.82")
set (LIBKTORRENT_MIN_VERSION "20.11.70")
set (Boost_MIN_VERSION "1.71.0")
cmake_policy(SET CMP0115 OLD)
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_MODULE_PATH})
......
set(ipblocklisttest_SRCS ipblocklisttest.cpp ../ipblocklist.cpp)
add_executable(ipblocklisttest ${ipblocklisttest_SRCS})
add_test(ipblocklisttest ipblocklisttest)
ecm_mark_as_test(ipblocklisttest)
target_link_libraries(ipblocklisttest Qt5::Core Qt5::Network Qt5::Test ktcore)
include(ECMAddTests)
ecm_add_test(ipblocklisttest.cpp ../ipblocklist.cpp TEST_NAME ipblocklisttest LINK_LIBRARIES ktcore Qt5::Core Qt5::Network KF5::Torrent Qt5::Test)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment