project(keyedit LANGUAGES CXX)
set(QTREQUIRED ON)
set(CMAKEAUTOMOC ON)
findpackage(Qt5 COMPONENTS Widgets Sql REQUIRED)
addexecutable(keyedit ${keyeditsources})
targetlink_libraries(keyedit Qt5::Core Qt5::Sql Qt5::Widgets)
This is a lot less unwieldy than autotools.