1 2 3 4 5 6 7
find_package(Qt4 REQUIRED) set(CMAKE_WARN_DEPRECATED 1) add_library(foo SHARED empty.cpp) qt4_automoc(foo_moc_srcs empty.cpp)