ecm provides CMake files:

    find_package(ECM CONFIG REQUIRED NO_MODULE)
    list(INSERT CMAKE_MODULE_PATH 0 ${ECM_MODULE_PATH})
    include(KDEInstallDirs)
    include(KDECompilerSettings)
    include(KDECMakeSettings)

For more infomation, see https://api.kde.org/ecm/
