Crow/tests/CMakeLists.txt

21 lines
620 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.15)
project(crow_test)
2014-08-06 16:18:33 +00:00
set(TEST_SRCS
unittest.cpp
2014-08-06 16:18:33 +00:00
)
2014-08-06 19:46:28 +00:00
add_executable(unittest ${TEST_SRCS})
2021-04-17 09:21:55 +00:00
target_link_libraries(unittest ${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} z)
2021-01-08 15:13:39 +00:00
# set target compile options as defined in the cmake/compiler_options.cmake Module
target_compile_options(unittest PRIVATE ${compiler_options})
2014-08-06 19:46:28 +00:00
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set_target_properties(unittest PROPERTIES COMPILE_FLAGS "--coverage -fprofile-arcs -ftest-coverage")
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)
2021-04-16 23:33:35 +00:00
add_subdirectory(ssl)
add_subdirectory(img)