# CMake Utils
This directory holds scripts to help the porting process from `qmake` to `cmake` for Qt6.
If you're looking to port your own Qt-based project from `qmake` to `cmake`, please use
[qmake2cmake](https://wiki.qt.io/Qmake2cmake).
# Requirements
* [Python 3.7](https://www.python.org/downloads/),
* `pipenv` or `pip` to manage the modules.
## Python modules
Since Python has many ways of handling projects, you have a couple of options to
install the dependencies of the scripts:
### Using `pipenv`
The dependencies are specified on the `Pipfile`, so you just need to run
`pipenv install` and that will automatically create a virtual environment
that you can activate with a `pipenv shell`.
### Using `pip`
It's highly recommended to use a [virtualenvironment](https://virtualenv.pypa.io/en/latest/)
to avoid conflict with other packages that are already installed: `pip install virtualenv`.
* Create an environment: `virtualenv env`,
* Activate the environment: `source env/bin/activate`
(on Windows: `source env\Scripts\activate.bat`)
* Install the requirements: `pip install -r requirements.txt`
If the `pip install` command above doesn't work, try:
```
python3.7 -m pip install -r requirements.txt
```
# Contributing to the scripts
You can verify if the styling of a script is compliant with PEP8, with a couple of exceptions:
Install [flake8](http://flake8.pycqa.org/en/latest/) (`pip install flake8`) and run it
on all python source files:
```
make flake8
```
You can also modify the file with an automatic formatter,
like [black](https://black.readthedocs.io/en/stable/) (`pip install black`),
and execute it:
```
make format
```
没有合适的资源?快使用搜索试试~ 我知道了~
Qt Pro转CMakeLists
共68个文件
pro:35个
py:18个
pyc:5个
需积分: 0 1 下载量 186 浏览量
2024-03-28
11:18:05
上传
评论
收藏 126KB ZIP 举报
温馨提示
压缩包解压后,使用命令:python.exe run_pro2cmake.py --only-missing pro文件目录
资源推荐
资源详情
资源评论
收起资源包目录
cmake.zip (68个子文件)
cmake
helper.py 35KB
pro_conversion_rate.py 7KB
special_case_helper.py 15KB
run_pro2cmake.py 7KB
cmakeconversionrate.py 4KB
qmake_parser.py 16KB
Pipfile 256B
Makefile 290B
tests
__init__.py 0B
test_scope_handling.py 11KB
test_conversion.py 3KB
test_logic_mapping.py 4KB
data
else6.pro 88B
function_if.pro 95B
definetest.pro 145B
lc_with_comment.pro 211B
unset.pro 19B
quoted.pro 225B
include.pro 51B
multi_condition_divided_by_lc.pro 51B
escaped_value.pro 65B
else4.pro 72B
else2.pro 47B
condition_operator_precedence.pro 94B
else.pro 68B
complex_condition.pro 138B
multiline_assign.pro 30B
else7.pro 64B
nested_function_calls.pro 30B
condition_without_scope.pro 37B
comment_scope.pro 292B
contains_scope.pro 79B
sql.pro 51B
single_line_for.pro 71B
standardpaths.pro 429B
lc.pro 175B
complex_assign.pro 75B
for.pro 307B
else3.pro 78B
else5.pro 133B
load.pro 35B
value_function.pro 54B
conversion
required_qt_modules.pro 63B
optional_qt_modules.pro 84B
qt_version_check.pro 311B
else8.pro 79B
complex_values.pro 1012B
test_lc_fixup.py 607B
test_parsing.py 10KB
test_operations.py 1004B
.idea
cmake.iml 347B
workspace.xml 4KB
inspectionProfiles
profiles_settings.xml 174B
.pro2cmake_cache
cache.json 1KB
configurejson2cmake.py 54KB
condition_simplifier_cache.py 5KB
requirements.txt 241B
.gitignore 19B
__pycache__
qmake_parser.cpython-39.pyc 9KB
helper.cpython-39.pyc 24KB
condition_simplifier.cpython-39.pyc 4KB
special_case_helper.cpython-39.pyc 11KB
condition_simplifier_cache.cpython-39.pyc 4KB
generate_module_map.sh 447B
README.md 2KB
json_parser.py 3KB
condition_simplifier.py 8KB
pro2cmake.py 182KB
共 68 条
- 1
资源评论
gd.gu
- 粉丝: 95
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功