All testing targets are added with the add_test command. If a project pulling in mbed-benchtest as a dependency runs CTest, these tests will be included, which is not desired.
The solution can be as simple as adding an option to enable tests and keep them disabled by default.
All testing targets are added with the
add_testcommand. If a project pulling in mbed-benchtest as a dependency runs CTest, these tests will be included, which is not desired.The solution can be as simple as adding an option to enable tests and keep them disabled by default.