On Sat, Jul 31, 2010 at 10:50 AM, 1+1=2 <[email protected]> wrote: > I want to use command like this: > > QT4_GENERATE_MOC(${CMAKE_CURRENT_SOURCE_DIR}/main.cpp main.moc) > > but I do not know how to make this run before main.cpp being compiled to > main.o > > anyone can help me? >
Besides the fact that your syntax is wrong with your QT4_GENERATE_MOC call the result of the moc has to be included in the target otherwise it does not run. John _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
