当前位置:网站首页>Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
Solve cmakelist find_ Package cannot find Qt5, ECM cannot be found
2022-07-05 16:39:00 【Trendy technology research society】
Compiling a cmake When the project is , Need to use ECM, So using vcpkg install ecm, Results the installation was successful , however cmake Still don't recognize ,find_package Report errors , Can't find ecm Location , Obviously ,vcpkg install ecm To packages Under the path , This packages The path is not cmake Find the
Now , We need to be in CMakeList Add path description to the file , That is to use set 了 .
As shown in the figure below ,Qt5 Can directly set, however ECM, I can't find it ECM How to set the path of ,Qt5_DIR We often see , however ECM_DIR But I have never seen , Obviously , Give it a try , no way .
Then I tried to vcpkg in packages In the catalog ecm Installation directory share Copy the directory directly to cmake share Directory ,cmake Successfully found ecm, But that's normal ,cmake Look under your own path , It must be found .
find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
set(Qt5_DIR "D:\\Qt\\5.15.2\\msvc2019_64\\lib\\cmake\\Qt5")
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg Concurrent)
边栏推荐
- 文件操作--I/O
- 详解SQL中Groupings Sets 语句的功能和底层实现逻辑
- 效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了
- Flet tutorial 12 stack overlapping to build a basic introduction to graphic and text mixing (tutorial includes source code)
- 怎样在电脑上设置路由器的WiFi密码
- Cartoon: what is the eight queens problem?
- Mistakes made when writing unit tests
- The difference between searching forward index and inverted index
- Basic introduction to the control of the row component displaying its children in the horizontal array (tutorial includes source code)
- JSON转MAP前后数据校验 -- 自定义UDF
猜你喜欢
"21 days proficient in typescript-3" - install and build a typescript development environment md
Migrate /home partition
How to install MySQL
Single merchant v4.4 has the same original intention and strength!
Bs-xx-042 implementation of personnel management system based on SSM
中间表是如何被消灭的?
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
ES6 drill down - ES6 generator function
Research and development efficiency measurement index composition and efficiency measurement methodology
Fleet tutorial 09 basic introduction to navigationrail (tutorial includes source code)
随机推荐
如何安装mysql
scratch五彩糖葫芦 电子学会图形化编程scratch等级考试三级真题和答案解析2022年6月
The new version of effect editor is online! 3D rendering, labeling, and animation, this time an editor is enough
《21天精通TypeScript-3》-安装搭建TypeScript开发环境.md
Android 隐私沙盒开发者预览版 3: 隐私安全和个性化体验全都要
移动办公时如何使用frp内网穿透+teamviewer方式快速连入家中内网主机
Dare not buy thinking
Accès aux données - intégration du cadre d'entité
Raspberry pie 4B installation pytorch1.11
10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
Cartoon: what is the eight queens problem?
【深度学习】深度学习如何影响运筹学?
Oneforall installation and use
Migrate /home partition
[js] skill simplification if empty judgment
Explain in detail the functions and underlying implementation logic of the groups sets statement in SQL
新春限定丨“牛年忘烦”礼包等你来领~
[deep learning] [original] let yolov6-0.1.0 support the txt reading dataset mode of yolov5
How to install MySQL
Cartoon: what is blue-green deployment?