mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Updated ssl_test CMake config to match revamped_setup
This commit is contained in:
parent
b3638a3b83
commit
ac36da8e97
@ -17,5 +17,7 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
endif()
|
||||
|
||||
add_subdirectory(template)
|
||||
add_subdirectory(ssl)
|
||||
if (CROW_ENABLE_SSL)
|
||||
add_subdirectory(ssl)
|
||||
endif()
|
||||
add_subdirectory(img)
|
||||
|
@ -1,14 +1,18 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
project (ssl_test)
|
||||
project (crow_ssl_test)
|
||||
|
||||
set(PROJECT_INCLUDE_DIR
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/compiler_options.cmake)
|
||||
|
||||
set(TEST_SRCS
|
||||
ssltest.cpp
|
||||
)
|
||||
|
||||
add_executable(ssltest ${TEST_SRCS})
|
||||
target_link_libraries(ssltest ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${OPENSSL_LIBRARIES} z)
|
||||
target_compile_options(ssltest PRIVATE "${compiler_options}")
|
||||
target_link_libraries(ssltest Crow::Crow)
|
||||
add_warnings_optimizations(ssltest)
|
||||
|
||||
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()
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#define CROW_ENABLE_SSL
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#define CROW_LOG_LEVEL 0
|
||||
#define CROW_MAIN
|
||||
|
Loading…
Reference in New Issue
Block a user