當我使用下面的代碼:在cmake的,具體怎麼QT5 pacakge路徑
find_package(Qt5Widgets REQUIRED)
add_executable(ex ex.cc)
target_link_libraries(ex Qt5::Widgets Qt5::DBus)
我得到:
Error:By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Widgets", but CMake did not find one.
Could not find a package configuration file provided by "Qt5Widgets" with any of the following names:
我qtbase路徑是「/媒體/ roroco/disk750 /下載/ QT5/qtbase」,我有編譯它,如何具體在find_package
我不明白「QT64_LOCATION」,是「/ media/roroco/disk750/Downloads/qt5/qtbase/bin」還是「/ media/roroco/disk750/Downloads/qt5/qtbase」? – hucmarcot
qmake和其他可執行對象的路徑,可能是「/ media/roroco/disk750/Downloads/qt5/qtbase/bin」 – jonezq