X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Ftests%2FCMakeLists.txt;h=b0ddbdbf2ffec996dbc4f7df6b92bbd00f4e87d3;hb=refs%2Fchanges%2F73%2F18173%2F1;hp=4a1345ee77b7f3d3cec9edebf9289a3b18df016b;hpb=5200d7022b34c0be646ae92de8c638c9437c7072;p=src%2Fapp-framework-binder.git diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 4a1345ee..b0ddbdbf 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright 2017 IoT.bzh +# Copyright (C) 2017, 2018 "IoT.bzh" # # author: José Bollo # @@ -16,5 +16,16 @@ # limitations under the License. ########################################################################### -add_subdirectory(test-perm) +PKG_CHECK_MODULES(check check) +if(check_FOUND) + INCLUDE_DIRECTORIES(${INCLUDE_DIRS} ${check_INCLUDE_DIRS}) + SET(link_libraries ${link_libraries} ${check_LDFLAGS}) + add_subdirectory(session) + add_subdirectory(apiset) + add_subdirectory(apiv3) + add_subdirectory(wrap-json) + add_subdirectory(globset) +else(check_FOUND) + MESSAGE(WARNING "check not found! no test!") +endif(check_FOUND)