Am 14.11.2016 um 12:41 schrieb Alan W. Irwin: > On 2016-11-14 09:06+0100 Sebastian Holtermann wrote: > >> What probably could be done is to add >> ${CMAKE_BINARY_DIR}/${TARGETNAME}_automoc.dir >> to the INCLUDE_DIRECTORIES of the target and then generate all >> #included moc file there, accepting the risk of intra target name >> collisions. > > Hi Sebastian: > > Your compromise idea above sounds good to me! >
Btw. I liked your ${CMAKE_BINARY_DIR}/ ${TARGETNAME}_automoc.dir/ ${HEADERPATHCHECKSUM}/ moc_${HEADERNAME}.cpp approach. It could be used for the moc_<autoname>.cpp files that are not manually #included and therefore can have any name. Over the current ${CMAKE_BINARY_DIR}/ ${TARGETNAME}_automoc.dir/ moc_${HEADERNAME}_${HEADERPATHCHECKSUM}.cpp scheme it has the advantages that 1) moc_<autoname>.cpp files are grouped by their source directory 2) ${HEADERNAME} is kept intact and does not get shortened 3) fewer weird looking checksum names ;) 1) and 2) are generally helpful to find and debug moced files I think. There are a some other changes to the automoc system I would like to propose / work on. I'm currently busy with an other project though. -Sebastian -- 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-developers