2020-10-18 16:59:15 +00:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
|
|
|
project(crow_test)
|
2014-08-06 16:18:33 +00:00
|
|
|
|
2021-08-23 20:30:39 +00:00
|
|
|
include(${CMAKE_SOURCE_DIR}/cmake/compiler_options.cmake)
|
|
|
|
|
2014-08-06 16:18:33 +00:00
|
|
|
set(TEST_SRCS
|
2020-10-18 16:59:15 +00:00
|
|
|
unittest.cpp
|
2014-08-06 16:18:33 +00:00
|
|
|
)
|
|
|
|
|
2014-08-06 19:46:28 +00:00
|
|
|
add_executable(unittest ${TEST_SRCS})
|
2021-08-23 20:30:39 +00:00
|
|
|
target_link_libraries(unittest Crow::Crow)
|
|
|
|
add_warnings_optimizations(unittest)
|
2014-08-06 19:46:28 +00:00
|
|
|
|
2021-08-23 20:30:39 +00:00
|
|
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
2020-10-19 08:02:57 +00:00
|
|
|
set_target_properties(unittest PROPERTIES COMPILE_FLAGS "--coverage -fprofile-arcs -ftest-coverage")
|
2020-10-18 16:59:15 +00:00
|
|
|
target_link_libraries(unittest gcov)
|
2014-09-06 19:30:53 +00:00
|
|
|
endif()
|
2014-08-06 19:46:28 +00:00
|
|
|
|
|
|
|
add_subdirectory(template)
|
2022-02-23 03:00:00 +00:00
|
|
|
add_subdirectory(multi_file)
|
2022-11-02 21:38:12 +00:00
|
|
|
add_subdirectory(external_definition)
|
2022-04-03 21:42:13 +00:00
|
|
|
if ("ssl" IN_LIST CROW_FEATURES)
|
2021-09-27 21:50:26 +00:00
|
|
|
add_subdirectory(ssl)
|
|
|
|
endif()
|
2020-10-13 08:04:46 +00:00
|
|
|
add_subdirectory(img)
|