Update to use AUTOMOC

When trying to build the integrated user manual,
the linker stopped with the error message "undefined reference to vtable ...".
This is a subtle bug, connected to the qt preprocessor MOC.
Adding "set(CMAKE_AUTOMOC ON)" to the desktop-widgets/CMakeLists.txt fixed the problem.

For more information, see:
https://github.com/bincrafters/community/issues/466
https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html

Signed-off-by: Simeon Geiger <simeon.geiger@gmail.com>
This commit is contained in:
Simeon 2024-01-19 23:14:57 +01:00 committed by Dirk Hohndel
parent 9e2f7571f9
commit 24c1cb5b09

View file

@ -16,6 +16,8 @@ include_directories(.
${CMAKE_BINARY_DIR}
)
set(CMAKE_AUTOMOC ON)
add_subdirectory(preferences)
set (SUBSURFACE_UI