2023-12-09 11:36:05 +01:00
|
|
|
add_subdirectory(mock)
|
|
|
|
|
|
2026-02-26 01:00:40 +01:00
|
|
|
if(WITH_APPS)
|
|
|
|
|
add_subdirectory(apps)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(WITH_BROKER)
|
|
|
|
|
add_subdirectory(broker)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if(WITH_CLIENTS)
|
|
|
|
|
add_subdirectory(client)
|
|
|
|
|
endif()
|
2022-06-21 14:05:52 +02:00
|
|
|
add_subdirectory(lib)
|
|
|
|
|
add_subdirectory(unit)
|
2022-06-28 16:05:17 +02:00
|
|
|
|
|
|
|
|
add_custom_target(coverage
|
|
|
|
|
COMMAND lcov --quiet --capture --directory . --output-file ${PROJECT_BINARY_DIR}/coverage.info --no-external
|
|
|
|
|
COMMAND genhtml --quiet ${PROJECT_BINARY_DIR}/coverage.info --output-directory ${PROJECT_BINARY_DIR}/coverage
|
|
|
|
|
COMMENT "Generating coverage.info and coverage/index.html in ${PROJECT_BINARY_DIR}"
|
|
|
|
|
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
|
|
)
|