I am setting and using CMAKE_AUTOMOC to on, however, for Qt4+Cmake 2.8 builds, 
I would put the moc files into a separate folder (Visual Studio) using

source_group("Generated Files" FILES ${qtproject_MOC_SRCS})

Where qtproject_MOC_SRCS was defined via
QT4_WRAP_CPP(qtproject_MOC_SRCS ${mocheaders})

Is there a variable set in CMake 3.X for AUTOMOC that would allow the same 
flexibility?

Scott

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to