On Mon, Mar 9, 2009 at 2:58 PM, Michael Jackson <[email protected]> wrote: > On Mar 9, 2009, at 8:57 AM, Pau Garcia i Quiles wrote: > >> On Wed, Mar 4, 2009 at 3:01 PM, Bill Hoffman <[email protected]> >> wrote: >>> >>> Robert Dailey wrote: >>>> >>>> Hi, >>>> >>>> I noticed after switching to version 2.6.3 that header files (with HPP >>>> extension) are marked as "Exclude from build" in Visual Studio 2008. Is >>>> this >>>> behavior by design? If so, why? >>>> >>> You don't want to compile .hpp files do you? >> >> There is at least one use case for that: if you are using the Qt VC++ >> integration, "compile" runs moc on that header file and creates the >> moc_blah.cxx file. >> > > But if you were using Qt then you would be using the Qt4 specific CMake > macros for that. > > set (MXADataViewer_MOC_HDRS Something.hpp) > # and finally this will run moc: > QT4_WRAP_CPP( MXADataViewer_MOC_SRCS ${MXADataViewer_MOC_HDRS} ) > > which will have the build system (what ever it is) run "moc" on the > Something.hpp file to generate the moc_Something.cxx file and that resulting > file will be compiled by the native build system.
Yes, I'm using QT4_WRAP_CPP (with plans to move to automoc), but that "right-click, compile to run moc" is useful (no need to close the solution or reload projects) and it's what VC++ developers are used to. -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) _______________________________________________ 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
