1
0
Fork 0
cmake_helpers/external/openssl/CMakeLists.txt
2019-11-25 18:39:08 +03:00

38 lines
940 B
CMake

# This file is part of Desktop App Toolkit,
# a set of libraries for developing nice desktop applications.
#
# For license and copyright information please follow this link:
# https://github.com/desktop-app/legal/blob/master/LEGAL
add_library(external_openssl INTERFACE IMPORTED GLOBAL)
add_library(desktop-app::external_openssl ALIAS external_openssl)
target_include_directories(external_openssl SYSTEM
INTERFACE
${libs_loc}/openssl_1_1_1/include
)
if (WIN32)
target_link_directories(external_openssl
INTERFACE
${libs_loc}/openssl_1_1_1/out32$<$<CONFIG:Debug>:.dbg>
)
target_link_libraries(external_openssl
INTERFACE
libcrypto
libssl
)
else()
if (APPLE)
target_link_directories(external_openssl
INTERFACE
${libs_loc}/openssl_1_1_1
)
endif()
target_link_libraries(external_openssl
INTERFACE
crypto
ssl
)
endif()