project(PackageTest CXX) include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup() find_package(Qt6 6.4 CONFIG REQUIRED Core ) add_executable(example example.cpp) target_link_libraries(example ${CONAN_LIBS} Qt6::Core)