set(CMAKE_REQUIRED_LIBRARIES Qt6::Core) check_cxx_source_compiles( "#include int main() { QFileSystemWatcher *watcher = new QFileSystemWatcher(); delete watcher; return 0; }" HAVE_QFILESYSTEMWATCHER)