The "make test" target fails to build when using an out-of-source CMake config. "make check" completes correctly though... these should really be synonyms.
$ cmake ../lp-inkscape-ch -DGMOCK_DIR=/usr/src/gmock/
$ make
$ make test
Running tests...
Test project /home/alex/devel/inkscape/lp-inkscape-build-cmake
Start 1: BaseTest
Could not find executable /home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
Looked in the following places:
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
/home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Release/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Debug/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/MinSizeRel/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/RelWithDebInfo/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Deployment/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/Development/unittest
Unable to find executable: /home/alex/devel/inkscape/lp-inkscape-build-cmake/bin/unittest
1/1 Test #1: BaseTest .........................***Not Run 0.00 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.00 sec
The following tests FAILED:
1 - BaseTest (Not Run)
Errors while running CTest
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8
Fixed in trunk r14968.
There is a remaining (minor) difference between "make test" and "make check", in that the latter gives verbose test output and is therefore the preferred option.