Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added BUILD_WITH_OPENSSL #8

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "CMake"]
path = submodules/CMake
url = https://github.com/QuasarApp/CMake.git
[submodule "submodules/openssl-builder"]
path = submodules/openssl-builder
url = https://github.com/QuasarApp/openssl-builder.git
11 changes: 9 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
cmake_minimum_required(VERSION 3.19)
project(easyssl LANGUAGES CXX)
if(TARGET ${PROJECT_NAME})
message("The ${PROJECT_NAME} arledy included in main Project")
return()
message("The ${PROJECT_NAME} arledy included in main Project")
return()
endif()

set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand Down Expand Up @@ -37,6 +37,13 @@ set(EASYSSL_PACKAGE_ID "quasarapp.core.easyssl")

option(EASYSSL_TESTS "This option disables or enables tests of the ${PROJECT_NAME} project" ON)
option(EASYSSL_STATIC_SSL "This option enable or disabled static link ssl libraryes" OFF)
option(BUILD_WITH_OPENSSL "This option enable or disabled build thirdparty libraryes with easyssl library (for example openssl)" OFF)

if (BUILD_WITH_OPENSSL)
if (QA_WASM32 OR WIN32)
critical("The BUILD_WITH_OPENSSL not supports the Windows and WASM platforms")
endif()
endif()

if (ANDROID OR IOS OR NOT QT_VERSION_MAJOR OR QA_WASM32)
set(EASYSSL_TESTS OFF CACHE BOOL "This option force disbled for ANDROID IOS QA_WASM32 and Not Qt projects" FORCE)
Expand Down
4 changes: 4 additions & 0 deletions src/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ get_filename_component(CURRENT_PROJECT_DIR ${CMAKE_CURRENT_SOURCE_DIR} NAME)
set(CURRENT_PROJECT "${PROJECT_NAME}")
add_definitions(-DEASYSSL_LIBRARY)

if (BUILD_WITH_OPENSSL)

endif()

list(APPEND CMAKE_FIND_ROOT_PATH "$ENV{OPENSSL_ROOT_DIR}")
find_package(OpenSSL 3.0 REQUIRED)

Expand Down
1 change: 1 addition & 0 deletions submodules/openssl-builder
Submodule openssl-builder added at 5c4976