mirror of
https://github.com/UltraCoderRU/telebotxx.git
synced 2026-01-28 12:15:13 +00:00
Update dependencies. Rewrite tests to use Catch2 library. Add CMake option to use LLVM libc++. Delete bootstrap theme for Doxygen.
18 lines
447 B
CMake
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")
|