2018-09-10 21:44:12 -04:00
|
|
|
# The following lines of boilerplate have to be in your project's CMakeLists
|
2018-02-27 01:44:31 -05:00
|
|
|
# in this exact order for cmake to work correctly
|
2022-05-27 04:10:51 -04:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
2018-02-27 01:44:31 -05:00
|
|
|
|
2024-03-28 07:38:58 -04:00
|
|
|
file(TO_NATIVE_PATH "$ENV{IDF_PATH}/tools/cmake/project.cmake" _project_path)
|
|
|
|
|
|
|
|
include(${_project_path})
|
2018-02-27 01:44:31 -05:00
|
|
|
project(gcov_example)
|
2019-06-28 09:24:05 -04:00
|
|
|
|
2024-03-28 07:38:58 -04: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})
|