When I set set(CMAKE_AUTOMOC ON) cmake says
CMake Warning (dev) in src/ProjQt/CMakeLists.txt: AUTOGEN: No valid Qt version found for target ProjQt. AUTOMOC disabled. Consider adding:
find_package(Qt<QTVERSION> COMPONENTS Core)to your CMakeLists.txt file.
If I add find_package(Qt5 COMPONENTS Core) before set(CMAKE_AUTOMOC ON)
CMake Warning at src/ProjQt/CMakeLists.txt:5 (find_package):
By not providing "FindQt5.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Qt5",
but CMake did not find one.
...
I thought conan provides a custom find_package which behaviour is conan-related first, then default if failed but it looks like it doesn't provide it like vcpkg does
All these actions are done after include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)