summaryrefslogtreecommitdiffstats
path: root/Tests/FindOpenSSL/rand/CMakeLists.txt
blob: 520d5d2032a725f2216f1a284d27a4a049b60625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
cmake_minimum_required(VERSION 3.0)
project(FindOpenSSL_rand CXX)
include(CTest)

find_package(OpenSSL REQUIRED)

add_executable(tstopensslrand_tgt main.cc)
target_link_libraries(tstopensslrand_tgt OpenSSL::SSL)
add_test(NAME tstopensslrand_tgt COMMAND tstopensslrand_tgt)

add_executable(tstopensslrand_var main.cc)
target_link_libraries(tstopensslrand_var ${OPENSSL_LIBRARIES})
target_include_directories(tstopensslrand_var PRIVATE ${OPENSSL_INCLUDE_DIR})
add_test(NAME tstopensslrand_var COMMAND tstopensslrand_var)