build: allow conditional building of cynara-tests, turn it on in spec 45/27045/3
authorRafal Krypa <r.krypa@samsung.com>
Wed, 3 Sep 2014 14:04:26 +0000 (16:04 +0200)
committerLukasz Wojciechowski <l.wojciechow@partner.samsung.com>
Thu, 4 Sep 2014 18:16:33 +0000 (11:16 -0700)
commitfc366e4070b6a2696e4de4e42cbd4b740f7ade15
tree65f84b6334a975194a05ead19b05dd9b26f42475
parent7f339a1e206f36e92139eb16de499ceba6b7cba6
build: allow conditional building of cynara-tests, turn it on in spec

Change cmake to build cynara-tests only when enabled and enable it in spec
file. This will enable cynara build outside of Tizen (without tests).
Current setup for cynara-tests build depends on Tizen-specific packaging of
gmock package. This dependency cannot be met outside of Tizen, which would
break the whole build.
It is not easy to apply a proper fix to have cynara-tests built outside of
Tizen. Gmock is not meant to be used as dependency in such way.
Most certainly we will have to handle gmock dependency differently in
upstream and in Tizen.

Change-Id: Id9fc8142979d1a2061c1c72c610520479d9e61a2
Signed-off-by: Rafal Krypa <r.krypa@samsung.com>
CMakeLists.txt
packaging/cynara.spec