mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
20 lines
568 B
CMake
20 lines
568 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(crow_test)
|
|
|
|
set(TEST_SRCS
|
|
unittest.cpp
|
|
)
|
|
|
|
add_executable(unittest ${TEST_SRCS})
|
|
target_link_libraries(unittest ${Boost_LIBRARIES})
|
|
target_link_libraries(unittest ${CMAKE_THREAD_LIBS_INIT})
|
|
set_target_properties(unittest PROPERTIES COMPILE_FLAGS "-Wall -Werror -std=c++14")
|
|
|
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|
set_target_properties(unittest PROPERTIES COMPILE_FLAGS "--coverage -fprofile-arcs -ftest-coverage")
|
|
target_link_libraries(unittest gcov)
|
|
endif()
|
|
|
|
add_subdirectory(template)
|
|
add_subdirectory(img)
|