I\'m looking for successful example of Catch CatchLib integration with CMake test (Ctest) . as I understand this is additional cmake script which has to parse application ouput?
Install catch with:
$ git clone https://github.com/catchorg/Catch2 $ mkdir $ cd $ cmake -DBUILD_TESTING:BOOL=FALSE $ make $ make install
Then do add the following to the CMakeLists.txt:
find_package(Catch2 REQUIRED) target_link_libraries(tests Catch2::Catch2)
See here.