diff --git a/CMakeLists.txt b/CMakeLists.txt index d03a882..be54422 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,8 +6,7 @@ set(APPLICATION_NAME "视觉防夹设备上位机工具") set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(Projects_ROOT E:/Projects) -set(Libraries_ROOT ${Projects_ROOT}/Libraries) +set(Libraries_ROOT E:/Projects/Libraries CACHE STRING "Libraries directory.") find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Qml Quick Network QuickControls2) find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Qml Quick Network QuickControls2) @@ -29,6 +28,11 @@ else() endif() option(Boost_USE_STATIC_LIBS OFF) +set(OpenSSL_ROOT D:/Qt/Tools/OpenSSLv3/Win_x64) +set(OPENSSL_INCLUDE_DIR ${OpenSSL_ROOT}/include) +set(OpenSSL_LIBRARY_DIRS ${OpenSSL_ROOT}/lib) +set(OpenSSL_LIBRARIES libssl libcrypto) + set(FFmpeg_ROOT ${Libraries_ROOT}/ffmpeg-7.0.2-full_build-shared) set(FFmpeg_INCLUDE_DIR ${FFmpeg_ROOT}/include) set(FFmpeg_LIB_DIR ${FFmpeg_ROOT}/lib) @@ -95,8 +99,13 @@ set_target_properties(AntiClipSettings PROPERTIES WIN32_EXECUTABLE TRUE ) -add_subdirectory(${Projects_ROOT}/Kylin/Universal Universal) -add_subdirectory(${Projects_ROOT}/Kylin/Encrypt Encrypt) +include(CPack) +include(FetchContent) +FetchContent_Declare(Kylin + GIT_REPOSITORY https://gitea.amass.fun/amass/Kylin.git +) +set(KYLIN_WITH_FLUENT OFF) +FetchContent_MakeAvailable(Kylin) target_include_directories(AntiClipSettings PRIVATE ${FFmpeg_INCLUDE_DIR}