I have got following problem:
using CLion with Qt for programming I have some problems with autogenerated automoc files (all *automoc.cpp files annoyingly appear in my project view).
The way I configured CMake to use Qt is as follows:
invoke CONFIGURE_QT5() macro, which code is:
macro(CONFIGURE_QT5) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ";" ${QT5_PACKAGE_DIR}) find_package(Qt5Widgets REQUIRED) endmacro()
link libraries:
target_link_libraries(${PROJECT_NAME} Qt5::Widgets)
After each build there are automoc files generated for each CMake project for my build, which appear on top of my Project View in CLion (note: I cannot find those files in the directory in simple explorer).
Any advice on how to get rid of them from the project view? Or maybe how to do it the hard way - delete them after build is finished?