This commit is contained in:
xueyan hu
2021-12-21 16:15:07 +08:00
parent 595632aef5
commit 9b2b6d8838
11 changed files with 1501 additions and 1478 deletions

View File

@@ -35,6 +35,11 @@ file(GLOB project_uis ./src/*.ui)
qt5_wrap_ui(ui_FILES ${project_uis})
file(GLOB project_res ./src/*.qrc)
set(TS_FILES
./src/translations/en_US.ts
./src/translations/zh_CN.ts)
find_package(Qt5 COMPONENTS ${REQUIRED_LIBS} LinguistTools REQUIRED)
qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
set(TS_FILES
./src/translations/en_US.ts
./src/translations/zh_CN.ts)
@@ -45,6 +50,7 @@ set(cpp_source_all ${project_headers} ${project_cpps} ${project_cxx} ${project_r
qt5_create_translation(QM_FILES ${cpp_source_all} ${TS_FILES})
add_executable(${PROJECT_NAME} ${cpp_source_all} ${ui_FILES} ${QM_FILES} )
add_executable(${PROJECT_NAME} ${project_headers} ${project_cpps} ${project_cxx} ${project_res} ${project_cc} ${project_c} ${ui_FILES} )
if(UNIX AND USE_SHIMLIB)
link_directories(/usr/local/lib64)
target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL Qt5::Sql Qt5::VirtualKeyboard Qt5::Network pthread usct_shim dmapi log4c cunit ctomat hdf5 matio m)