CMAKE_PREFIX_PATH doesn’t help CMake in finding Qt5
I installed the following missing packages: sudo apt-get install qtbase5-dev sudo apt-get install qtdeclarative5-dev Attaching any kind of prefix is not required now: CMakeList: :~/junk/qtquick_hello_cmake$ cat CMakeLists.txt cmake_minimum_required(VERSION 2.8.12) project(qtquick_hello_cmake) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) find_package(Qt5 COMPONENTS Quick Core REQUIRED) qt5_add_resources(RESOURCES qml.qrc) add_executable(${PROJECT_NAME} “main.cpp” “qml.qrc”) qt5_use_modules(${PROJECT_NAME} Quick Core) target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick) New output: :~/junk/qtquick_hello_cmake$ … Read more