cmake_minimum_required(VERSION 3.5) project(QtAutomocNoQt) set(CMAKE_AUTOMOC ON) add_executable(hello main.c)