telebotxx/tests/CMakeLists.txt
Kirill Kirilenko 0c71edab8b Switch to C++17.
Update dependencies.
Rewrite tests to use Catch2 library.
Add CMake option to use LLVM libc++.
Delete bootstrap theme for Doxygen.
2020-11-30 14:12:21 +03:00

18 lines
447 B
CMake

message(STATUS "Configuring telebotxx-test")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(SOURCE_FILES TestApi.cpp)
add_executable(telebotxx-test ${SOURCE_FILES})
target_link_libraries(telebotxx-test
telebotxx
Catch2::Catch2WithMain
rapidjson
)
add_custom_target(test COMMAND $<TARGET_FILE:telebotxx-test>
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
DEPENDS telebotxx-test
)
message(STATUS "Configuring telebotxx-test - done")