Skip to content

Commit

Permalink
Fetch openssl through cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Mar 12, 2024
1 parent 506b673 commit 525ac29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ elseif(IOS)
elseif(WIN32)
set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE TRUE)
elseif(ANDROID)
FetchContent_Declare(
android_openssl
DOWNLOAD_EXTRACT_TIMESTAMP true
URL https://github.com/KDAB/android_openssl/archive/refs/heads/master.zip
)
FetchContent_MakeAvailable(android_openssl)
include(${android_openssl_SOURCE_DIR}/android_openssl.cmake)
add_android_openssl_libraries(${PROJECT_NAME})

set_target_properties(${PROJECT_NAME}
Expand Down
1 change: 0 additions & 1 deletion libs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_subdirectory(libevents)
add_subdirectory(OpenSSL)
add_subdirectory(qtandroidserialport)
add_subdirectory(sdl2)
add_subdirectory(zlib)
Expand Down
3 changes: 0 additions & 3 deletions libs/OpenSSL/CMakeLists.txt

This file was deleted.

0 comments on commit 525ac29

Please sign in to comment.