Dear all, we have a problem that Qt moc is only called for headers in the include directory of the project, not for subdirectories. Attached is a minimal example. cmake should call moc to generate the moc- sources in MyQtWidgets_autogen/include/bda/ folder. However the sources are not generated. When I move the header out of the subdirectory (from include/bda/CollapsibleDockWidget.hh to include/CollapsibleDockWidget.hh) and fix the include path in the source files, then moc works correctly.
I think this is wrong, but I could not find explicit documentation about how the headers and sources are set for moc (see [1]). Does cmake not respect the headers listed with add_library()? Or is there something else I'm doing wrong? All the best, Mario Emmenlauer [1] https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html -- BioDataAnalysis GmbH, Mario Emmenlauer Tel. Buero: +49-89-74677203 Balanstr. 43 mailto: memmenlauer * biodataanalysis.de D-81669 München http://www.biodataanalysis.de/
MyQtWidgets.tar.gz
Description: application/gzip
-- 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: https://cmake.org/mailman/listinfo/cmake