Replies: 1 comment 5 replies
-
I'm not sure the exact version of CppUTest is packaged by msys. Assuming it's close to the last release 4.0, you should be able to something like cmake_minimum_required(VERSION 3.1)
project(example_project)
# this enables CTest for the project.
include(CTest) # or enable_testing()
find_package(CppUTest REQUIRED)
add_executable(example_test #[[ ... ]] )
target_link_libraries(example_test PRIVATE CppUTest)
cpputest_buildtime_discover_tests(example_test)
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, Goodday. Please, how does one use the cpputest_buildtime_discover_tests function in the CCppUTestBuildTimeDiscoverTests.cmake script that comes with msys2 CppUTest package. I thought it would work like the cpputest_discover_tests function that comes with the standard project but ctest is having difficult finding the tests
Beta Was this translation helpful? Give feedback.
All reactions