2018-09-11 09:44:12 +08:00
|
|
|
# The following lines of boilerplate have to be in your project's CMakeLists
|
2018-02-27 17:44:31 +11:00
|
|
|
# in this exact order for cmake to work correctly
|
2022-05-27 10:10:51 +02:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2018-02-27 17:44:31 +11:00
|
|
|
|
2024-03-28 12:38:58 +01:00
|
|
|
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
|
|
|
|
|
|
|
|
include(${_project_path})
|
2018-02-27 17:44:31 +11:00
|
|
|
project(gcov_example)
|
2019-06-28 16:24:05 +03:00
|
|
|
|
2024-03-28 12:38:58 +01:00
|
|
|
file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}/coverage_report" _coverage_path)
|
|
|
|
|
|
|
|
idf_create_coverage_report(${_coverage_path})
|
|
|
|
idf_clean_coverage_report(${_coverage_path})
|