cmake_minimum_required(VERSION 3.23)
project(test)
set(CMAKE_CXX_STANDARD 14)
set(INC_DIR ./Include/OpenSSL_Include)
set(LINK_DIR
./Lib/OpenSSL_Lib
./Lib/OpenSSL_Lib/VC/static)
#引入头文件
include_directories(${INC_DIR})
#引入库文件
link_directories(${LINK_DIR})
add_executable(test
main.cpp
Base64.cpp
Base64.h
RSACrypto.cpp
RSACrypto.h
StrCrypto.h)
target_link_libraries(test
libcrypto_static.lib
libssl64MD.lib
libcrypto64MD.lib
ws2_32.lib)
标签:set,lib,Lib,OpenSSL,添加,test,CLion,第三方,DIR
From: https://www.cnblogs.com/horizonhz/p/17095833.html