Update CMakeLists.txt

This commit is contained in:
Re*Index. (ot_inc) 2025-07-23 16:36:01 +09:00 committed by GitHub
commit a8cc794039
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,7 @@
set(QC_TS_FILES
${CMAKE_CURRENT_SOURCE_DIR}/zh_CN.ts
${CMAKE_CURRENT_SOURCE_DIR}/en_US.ts
${CMAKE_CURRENT_SOURCE_DIR}/ja_JP.ts
)
# 设置qm文件生成目录
set_source_files_properties(${QC_TS_FILES} PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}")
@ -48,4 +49,4 @@ qt5_create_translation在cmake clean的时候会删除翻译好的ts文件
2. https://doc.qt.io/qt-5/qtlinguist-cmake-qt5-add-translation.html
3. https://doc.qt.io/qt-5/qtlinguist-cmake-qt5-create-translation.html
4. execute_process 参考https://blog.csdn.net/u010255072/article/details/120326833
5. add_custom_target 参考https://www.cnblogs.com/apocelipes/p/14355460.html
5. add_custom_target 参考https://www.cnblogs.com/apocelipes/p/14355460.html