modify cmake file

This commit is contained in:
xueyan hu
2021-12-23 13:57:15 +08:00
parent ad9ea3870e
commit 3554e547a5
5 changed files with 1297 additions and 0 deletions

View File

@@ -53,7 +53,11 @@ endforeach()
find_package(Qt5 COMPONENTS ${REQUIRED_LIBS} LinguistTools REQUIRED)
set(cpp_source_all ${project_headers} ${project_cpps} ${project_cxx} ${project_res} ${project_cc} ${project_c} )
set_source_files_properties(${TS_FILES} PROPERTIES OUTPUT_LOCATION ${CMAKE_SOURCE_DIR}/src/translations)
qt5_create_translation(QM_FILES ${cpp_source_all} ${ui_FILES} ${TS_FILES})
add_executable(${PROJECT_NAME} ${project_headers} ${project_cpps} ${project_cxx} ${project_res} ${project_cc} ${project_c} ${ui_FILES} ${QM_FILES} )
if(NOT UNIX)
find_program(POWERSHELL_PATH NAMES powershell)