| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- cmake_minimum_required(VERSION 3.16)
- project(Cabinet VERSION 0.1 LANGUAGES CXX)
- set(CMAKE_AUTOMOC ON)
- set(CMAKE_CXX_STANDARD_REQUIRED ON)
- set(CMAKE_AUTORCC ON)
- find_package(Qt6 6.7 COMPONENTS Quick Network SerialPort Multimedia Pdf Xml REQUIRED)
- find_package(Qt6 REQUIRED COMPONENTS Core)
- find_package(Qt6 REQUIRED COMPONENTS Core)
- find_package(Qt6 REQUIRED COMPONENTS Core)
- find_package(Qt6 REQUIRED COMPONENTS Core)
- find_package(Qt6 REQUIRED COMPONENTS Core)
- # 查找静态库
- find_library(ZKFP_LIB
- NAMES zkfp libzkfp
- PATHS libs/x64lib
- NO_DEFAULT_PATH
- )
- # 查找虹软SDK
- find_library(ARCSOFT_FACE_LIB
- NAMES libarcsoft_face_engine
- PATHS sdk/hrsdk/lib/X64
- NO_DEFAULT_PATH
- )
- set(APP_ICON_WINDOWS "${CMAKE_CURRENT_SOURCE_DIR}/logo.rc")
- qt_add_executable(appCabinet
- main.cpp resource.qrc ${RESOURCES} ${APP_ICON_WINDOWS}
- )
- qt_add_qml_module(appCabinet
- URI Cabinet
- VERSION 1.0
- QML_FILES main.qml
- RESOURCES resource.qrc
- QML_FILES content/Login.qml content/MainScreen.qml
- SOURCES user/config.cpp
- SOURCES user/config.h user/define.h
- SOURCES user/lock.h user/lock.cpp
- SOURCES user/httpclient.cpp user/httpclient.h
- SOURCES user/rfid.h user/rfid.cpp
- SOURCES user/ModuleReader.h
- SOURCES user/pro.cpp user/pro.h
- QML_FILES content/MaterialSelModel.qml
- QML_FILES content/MaterialTakeBack.qml
- QML_FILES content/MaterialStatistics.qml
- QML_FILES content/MaterialInstructions.qml
- QML_FILES content/MaterialCheckPlan.qml
- QML_FILES content/MaterialCheckForm.qml
- SOURCES user/finger.h user/finger.cpp
- SOURCES user/logoutput.cpp user/logoutput.h
- QML_FILES content/SetView.qml
- SOURCES libs/include/libzkfp.h libs/include/libzkfperrdef.h libs/include/libzkfptype.h libs/include/zkinterface.h
- RESOURCES logo.rc
- QML_FILES content/MaterialCheckSign.qml
- QML_FILES content/PromptInfo.qml
- QML_FILES content/MaterialReplace.qml
- QML_FILES content/ReuseTextField.qml
- QML_FILES content/ReuseComboBox.qml
- QML_FILES content/ReuseDateField.qml
- SOURCES sdk/hrsdk/inc/amcomdef.h sdk/hrsdk/inc/arcsoft_face_sdk.h sdk/hrsdk/inc/asvloffscreen.h sdk/hrsdk/inc/merror.h
- SOURCES Interactive/template_singleton.h
- SOURCES Interactive/InteractiveCore.cpp Interactive/InteractiveCore.h
- SOURCES Interactive/InteractiveData.cpp Interactive/InteractiveData.h
- SOURCES Interactive/InteractiveTask.cpp Interactive/InteractiveTask.h
- SOURCES Interactive/InteractiveWork.cpp Interactive/InteractiveWork.h
- SOURCES Interactive/DataListModel.cpp Interactive/DataListModel.h
- SOURCES Interactive/RunAbstract.cpp Interactive/RunAbstract.h
- SOURCES Interactive/RunDataCacheRefresh.h Interactive/RunDataCacheRefresh.cpp
- SOURCES Interactive/RunMaterialInfoListRefresh.cpp Interactive/RunMaterialInfoListRefresh.h
- SOURCES Interactive/RunMaterialReplaceRefreshListModel.h Interactive/RunMaterialReplaceRefreshListModel.cpp
- SOURCES Interactive/RunMaterialManualReplaceRefreshListModel.h Interactive/RunMaterialManualReplaceRefreshListModel.cpp
- SOURCES Interactive/RunMaterialManualReplaceSubmit.h Interactive/RunMaterialManualReplaceSubmit.cpp
- QML_FILES content/MaterialReplaceHand.qml
- QML_FILES content/MaterialReplaceAuto.qml
- QML_FILES content/MaterialException.qml
- QML_FILES content/ReuseMaterialInfo.qml
- QML_FILES content/MaterialExceptionReport.qml
- QML_FILES
- SOURCES Interactive/RunMaterialExceptionReport.h Interactive/RunMaterialExceptionReport.cpp
- SOURCES Interactive/RunMaterialExceptionRefreshListModel.h Interactive/RunMaterialExceptionRefreshListModel.cpp
- QML_FILES content/MaterialExceptionFinish.qml
- SOURCES user/timeout.h user/timeout.cpp
- QML_FILES content/MaterialDialog.qml
- SOURCES Interactive/RunHttpGet_getIsMaterialsLoanExceptionPage.h Interactive/RunHttpGet_getIsMaterialsLoanExceptionPage.cpp
- QML_FILES content/MaterialDialogMisplace.qml
- QML_FILES content/MaterialDialogTake.qml
- QML_FILES content/MaterialDialogBack.qml
- SOURCES Interactive/InteractiveFace.h Interactive/InteractiveFace.cpp
- QML_FILES content/FacialRecognition.qml
- SOURCES Interactive/InteractiveHttp.h Interactive/InteractiveHttp.cpp
- SOURCES Interactive/RunHttpGet_getSysUserCharacteristicPage.h Interactive/RunHttpGet_getSysUserCharacteristicPage.cpp
- SOURCES Interactive/RunHttpPost_insertUserFace.h Interactive/RunHttpPost_insertUserFace.cpp
- SOURCES Interactive/RunHttpPost_loginByFace.h Interactive/RunHttpPost_loginByFace.cpp
- SOURCES Interactive/InteractiveConf.h Interactive/InteractiveConf.cpp
- QML_FILES content/MaterialCheckUpdate.qml
- SOURCES Interactive/RunHttpGet_getIsMaterialsPage.h Interactive/RunHttpGet_getIsMaterialsPage.cpp
- QML_FILES content/MaterialStocktaking.qml
- SOURCES Interactive/RunHttpGet_selectExMaterialTypeById.h Interactive/RunHttpGet_selectExMaterialTypeById.cpp
- QML_FILES content/WaitPromptBox.qml
- SOURCES Interactive/RunHttpGet_getInfo.h Interactive/RunHttpGet_getInfo.cpp
- QML_FILES content/InfoPromptBox.qml
- SOURCES Interactive/RunHttpPost_startCheckPlan.h Interactive/RunHttpPost_startCheckPlan.cpp
- SOURCES Interactive/RunHttpGet_getLastCheckPlanByCabinetCode.h Interactive/RunHttpGet_getLastCheckPlanByCabinetCode.cpp
- SOURCES Interactive/RunHttpGet_getCabinetHomePage.h Interactive/RunHttpGet_getCabinetHomePage.cpp
- SOURCES Interactive/RunHttpPost_insertSubmitPlan.h Interactive/RunHttpPost_insertSubmitPlan.cpp
- SOURCES Interactive/RunHttpGet_getInstructionsList.h Interactive/RunHttpGet_getInstructionsList.cpp
- SOURCES Interactive/RunHttpPost_insertCheckRecord.h Interactive/RunHttpPost_insertCheckRecord.cpp
- SOURCES Interactive/RunHttpPost_deleteSysUserCharacteristicByRecordIds.h Interactive/RunHttpPost_deleteSysUserCharacteristicByRecordIds.cpp
- SOURCES Interactive/InteractiveHand.h Interactive/InteractiveHand.cpp
- SOURCES Interactive/RunHttpPost_insertUserFingerprintDat.h Interactive/RunHttpPost_insertUserFingerprintDat.cpp
- SOURCES Interactive/RunHttpGet_exception_type.h Interactive/RunHttpGet_exception_type.cpp
- SOURCES Interactive/RunHttpGet_severity_level.h Interactive/RunHttpGet_severity_level.cpp
- SOURCES Interactive/RunViewRefresh_AbnormalReport.h Interactive/RunViewRefresh_AbnormalReport.cpp
- SOURCES Interactive/RunHttpPost_insertIsException.h Interactive/RunHttpPost_insertIsException.cpp
- SOURCES Interactive/RunHttpGet_selectIsMaterialsCabinetByCode.h Interactive/RunHttpGet_selectIsMaterialsCabinetByCode.cpp
- QML_FILES content/HangPromptBox.qml
- SOURCES Interactive/RunViewWait.h Interactive/RunViewWait.cpp
- SOURCES Interactive/RunHttpPost_loginByFingerprintDat.h Interactive/RunHttpPost_loginByFingerprintDat.cpp
- QML_FILES content/MaterialManualReplace.qml
- SOURCES user/filelogger.h user/filelogger.cpp
- )
- # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
- # If you are developing for iOS or macOS you should consider setting an
- # explicit, fixed bundle identifier manually though.
- set_target_properties(appCabinet PROPERTIES
- # MACOSX_BUNDLE_GUI_IDENTIFIER com.example.appCabinet
- MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
- MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
- MACOSX_BUNDLE TRUE
- WIN32_EXECUTABLE TRUE
- )
- # add_subdirectory(MediaPlayer)
- # add_subdirectory(MediaControls)
- # 链接静态库
- target_link_libraries(appCabinet PRIVATE ${ZKFP_LIB} ${ARCSOFT_FACE_LIB})
- target_link_libraries(appCabinet
- PRIVATE Qt6::Quick
- Qt6::Network
- Qt6::SerialPort
- Qt6::Multimedia
- Qt6::Pdf
- Qt6::Xml
- )
- target_link_libraries(appCabinet PRIVATE Qt6::Core)
- target_link_libraries(appCabinet PRIVATE Qt6::Core)
- target_link_libraries(appCabinet PRIVATE Qt6::Core)
- target_link_libraries(appCabinet PRIVATE Qt6::Core)
- target_link_libraries(appCabinet PRIVATE Qt6::Core)
- include(GNUInstallDirs)
- install(TARGETS appCabinet
- BUNDLE DESTINATION .
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
- )
|