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