# #Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # @file CMakeLists.txt # @author Michal Eljasiewicz (m.eljasiewic@samsung.com) # @brief # INCLUDE(FindPkgConfig) # Dependencies PKG_CHECK_MODULES(SMACK_DBUS_TESTS_DEP libsmack dbus-1 REQUIRED) # Targets definition INCLUDE_DIRECTORIES(SYSTEM ${SMACK_DBUS_TESTS_DEP_INCLUDE_DIRS} ) SET(TARGET_SMACK_DBUS_TESTS "smack-dbus-tests") # Sources definition SET(SMACK_DBUS_SOURCES ${PROJECT_SOURCE_DIR}/tests/smack-dbus-tests/smack_dbus_tests.cpp ) INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/tests/common/ ) ADD_EXECUTABLE(${TARGET_SMACK_DBUS_TESTS} ${SMACK_DBUS_SOURCES}) TARGET_LINK_LIBRARIES(${TARGET_SMACK_DBUS_TESTS} ${SMACK_DBUS_TESTS_DEP_LIBRARIES} dpl-test-framework tests-common ) # Installation INSTALL(TARGETS ${TARGET_SMACK_DBUS_TESTS} DESTINATION /usr/bin)