1 # Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # @file CMakeLists.txt
16 # @author Marcin Kaminski (marcin.ka@samsung.com)
17 # @author Karol Pawlowski (k.pawlowski@samsung.com)
22 SET(LOCALIZATION_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
24 PKG_CHECK_MODULES(TEST_PKGS
29 WRT_INCLUDE_DIRECTORIES(
30 ${TEST_PKGS_INCLUDE_DIRS}
31 ${PROJECT_SOURCE_DIR}/modules/localization/include
34 WRT_LINK_DIRECTORIES(${TEST_PKGS_LIBRARY_DIRS})
35 WRT_TARGET_LINK_LIBRARIES(${TEST_PKGS_LIBRARIES})
37 FILE(GLOB LOCALIZATION_TESTS_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*testcases.cpp")
39 SET(TARGET_LOCALIZATION_TEST "wrt-commons-tests-localization")
40 WRT_TEST_BUILD(${TARGET_LOCALIZATION_TEST} ${LOCALIZATION_TESTS_SOURCES} tests_miscunit.cpp)
41 WRT_TEST_INSTALL(${TARGET_LOCALIZATION_TEST})