Catch2
if (NOT TARGET Catch2) project(Catch2 CXX) set(CMAKE_CXX_STANDARD 11) add_library(${PROJECT_NAME} INTERFACE) target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CU ${CMAKE_CURRENT_SOURCE_DIR}/include) # Mimic the library names in Catch2's own CMake files: add_library(Catch2::Catch2 ALIAS Catch2) # This one is historical, left over from when ApprovalTests.cpp cpp was first created. # We could encourage users to move away from it. add_library(catch2 ALIAS Catch2) endif ()0 码力 | 1 页 | 519.00 B | 5 月前3CMakeLists.txt
cppcon_add_test(basic SOURCES async_event.cpp main.cpp pending.cpp LIBRARIES Asio::asio Catch2::Catch2 basic)0 码力 | 1 页 | 112.00 B | 5 月前3CMakeLists.txt
cppcon_add_test(no_service SOURCES async_event.cpp main.cpp pending.cpp LIBRARIES Asio::asio Catch2::Catch2 no_service)0 码力 | 1 页 | 122.00 B | 5 月前3CMakeLists.txt
cppcon_add_test(complete SOURCES async_event.cpp main.cpp pending.cpp service.cpp LIBRARIES Asio::asio Catch2::Catch2 complete)0 码力 | 1 页 | 130.00 B | 5 月前3添加测试服务
cppcon_add_test(service SOURCES async_event.cpp main.cpp pending.cpp service.cpp LIBRARIES Asio::asio Catch2::Catch2 service)0 码力 | 1 页 | 128.00 B | 5 月前3CMakeLists.txt
cppcon_add_test(async_initiate SOURCES async_event.cpp main.cpp pending.cpp LIBRARIES Asio::asio Catch2::Catch2 async_initiate)0 码力 | 1 页 | 130.00 B | 5 月前391HeLLoApprovats
target_link_libraries(${EXE_NAME} shared_code::shared_code ApprovalTests::ApprovalTests Catch2::Catch2 ) target_compile_definitions(${EXE_NAME} PRIVATE CATCH_CONFIG_FAST_COMPILE) add_test(NAME0 码力 | 1 页 | 406.00 B | 5 月前393LogFites
target_link_libraries(${EXE_NAME} shared_code::shared_code ApprovalTests::ApprovalTests Catch2::Catch2 ) target_compile_definitions(${EXE_NAME} PRIVATE CATCH_CONFIG_FAST_COMPILE) add_test(NAME0 码力 | 1 页 | 404.00 B | 5 月前3694SVGFites CMake Configuration
target_link_libraries(${EXE_NAME} shared_code::shared_code ApprovalTests::ApprovalTests Catch2::Catch2 ) target_compile_definitions(${EXE_NAME} PRIVATE CATCH_CONFIG_FAST_COMPILE) add_test(NAME0 码力 | 1 页 | 436.00 B | 5 月前395QTabtewidget
helpers/QTableWidgetExamples.h ) target_link_libraries(${EXE_NAME} ApprovalTestsQt::ApprovalTestsQt Catch2::Catch2) target_compile_definitions(${EXE_NAME} PRIVATE CATCH_CONFIG_FAST_COMPILE) add_test(NAME ${EXE_NAME}0 码力 | 1 页 | 458.00 B | 5 月前3
共 14 条
- 1
- 2