# Find includes in corresponding build directories set(CMAKE_INCLUDE_CURRENT_DIR ON) # Instruct CMake to run moc automatically when needed. set(CMAKE_AUTOMOC ON) add_library(urlfilter filterrule.cpp filterrule.h formats/adblockrule.cpp formats/adblockrule.h formats/hostlistrule.cpp formats/hostlistrule.h # filter tree filtertree.cpp filtertree.h filterleaf.cpp filterleaf.h domain.cpp domain.h ) target_link_libraries(urlfilter Qt5::WebEngineWidgets)