MB-22602: Use CMake variables for target paths 81/78181/2
authorDave Rigby <daver@couchbase.com>
Tue, 16 May 2017 09:53:08 +0000 (10:53 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 16 May 2017 14:51:45 +0000 (14:51 +0000)
commit1c91ea760c5005364d45ecae9e49a056a804d9c9
tree09811479a0850836d58966686b4016f2cde5a1a5
parent004652b7addb599c34a0a13b4a4353df4de55a6a
MB-22602: Use CMake variables for target paths

Instead of manually specifying the path to various targets, use the
appropriate CMake variable / generator expression. This has the
advantage that if a target is moved to a different location, it will
still be correctly referred to.

In the case of ADD_TEST(), use the variant which specifies the NAME
option - this enables expansion of executable targets to their
absolute path.

Change-Id: I625b9908824969010b7535f2df5a69456d3d5ae4
Reviewed-on: http://review.couchbase.org/78181
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
Tested-by: Build Bot <build@couchbase.com>
CMakeLists.txt