2021-04-16 23:33:35 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
2021-09-27 21:50:26 +00:00
|
|
|
project (crow_ssl_test)
|
2021-04-16 23:33:35 +00:00
|
|
|
|
2021-09-27 21:50:26 +00:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler_options.cmake)
|
2021-04-16 23:33:35 +00:00
|
|
|
|
|
|
|
set(TEST_SRCS
|
|
|
|
ssltest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(ssltest ${TEST_SRCS})
|
2021-09-27 21:50:26 +00:00
|
|
|
target_link_libraries(ssltest Crow::Crow)
|
|
|
|
add_warnings_optimizations(ssltest)
|
|
|
|
|
2024-01-04 09:46:21 +00:00
|
|
|
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
|
|
|
|
target_link_libraries(ssltest log)
|
|
|
|
endif()
|
|
|
|
|
2021-09-27 21:50:26 +00:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
|
|
set_target_properties(ssltest PROPERTIES COMPILE_FLAGS "--coverage -fprofile-arcs -ftest-coverage")
|
|
|
|
target_link_libraries(ssltest gcov)
|
|
|
|
endif()
|
|
|
|
|