feat: add encrypt class(AESEncryptHelper) and CMake link logic

This commit is contained in:
kradchen
2025-03-07 09:19:45 +08:00
parent 9c1a8c98eb
commit bf68cfc532
3 changed files with 135 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ endif()
find_package(Qt5 COMPONENTS Core Widgets Gui Sql Network Multimedia MultimediaWidgets WebEngineWidgets REQUIRED)
find_package(DCMTK REQUIRED)
find_package(OpenSSL REQUIRED)
include_directories(${DCMTK_INCLUDE_DIRS})
@@ -80,7 +80,7 @@ add_executable(${PROJECT_NAME} ${project_headers} ${project_cpps} ${project_cxx}
if(${DCMTK_FOUND})
target_link_libraries(${PROJECT_NAME} dcmnet)
endif()
target_link_libraries(${PROJECT_NAME} PUBLIC ${OPENSSL_LIBRARIES})
target_compile_definitions(${PROJECT_NAME}
PRIVATE
# If the debug configuration pass the DEBUG define to the compiler