Crow/tests/CMakeLists.txt

30 lines
737 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.15)
project(crow_test)
2014-08-06 16:18:33 +00:00
include(${CMAKE_SOURCE_DIR}/cmake/compiler_options.cmake)
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})
target_link_libraries(unittest Crow::Crow)
add_warnings_optimizations(unittest)
2014-08-06 19:46:28 +00:00
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Android")
target_link_libraries(unittest log)
endif()
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)
add_subdirectory(multi_file)
add_subdirectory(external_definition)
if ("ssl" IN_LIST CROW_FEATURES)
add_subdirectory(ssl)
endif()
add_subdirectory(img)