'Generic Commit'
Some checks failed
Build-Test-Publish / build (push) Failing after 1m3s

This commit is contained in:
Your Name
2025-06-14 16:07:17 +12:00
parent 4ecfc1b68f
commit d92769d86c
3 changed files with 27 additions and 7 deletions

View File

@@ -53,6 +53,23 @@ target_include_directories(${PROJECT_NAME} PRIVATE
# Find packages
set(CMAKE_PREFIX_PATH /usr/local)
find_package(OpenSSL REQUIRED)
# Create OpenSSL targets if they don't exist (for cross-compilation)
if(NOT TARGET OpenSSL::SSL)
add_library(OpenSSL::SSL STATIC IMPORTED)
set_target_properties(OpenSSL::SSL PROPERTIES
IMPORTED_LOCATION "/usr/local/lib64/libssl.a"
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include"
)
endif()
if(NOT TARGET OpenSSL::Crypto)
add_library(OpenSSL::Crypto STATIC IMPORTED)
set_target_properties(OpenSSL::Crypto PROPERTIES
IMPORTED_LOCATION "/usr/local/lib64/libcrypto.a"
INTERFACE_INCLUDE_DIRECTORIES "/usr/local/include"
)
endif()
find_package(Drogon CONFIG REQUIRED)
find_package(nlohmann_json REQUIRED)