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