To run tests, add -DTESTING=ON argument when invoking cmake, then build the app as usual. After building, run cmake --build <build> --target check where <build> is your cmake build directory.
-DTESTING=ON
cmake --build <build> --target check
<build>