merge with master
[platform/framework/web/wrt-commons.git] / tests / localizationTagsProvider / CMakeLists.txt
1 # Copyright (c) 2012 Samsung Electronics Co., Ltd All Rights Reserved
2 #
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
6 #
7 #        http://www.apache.org/licenses/LICENSE-2.0
8 #
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.
14 #
15 # @file        CMakeLists.txt
16 # @author      Marcin Kaminski (marcin.ka@samsung.com)
17 # @author      Karol Pawlowski (k.pawlowski@samsung.com)
18 # @version     1.0
19 # @brief
20 #
21
22 SET(LOCALIZATION_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
23
24 PKG_CHECK_MODULES(TEST_PKGS
25     vconf
26     REQUIRED
27     )
28
29 WRT_INCLUDE_DIRECTORIES(
30     ${TEST_PKGS_INCLUDE_DIRS}
31     ${PROJECT_SOURCE_DIR}/modules/localization/include
32     )
33
34 WRT_LINK_DIRECTORIES(${TEST_PKGS_LIBRARY_DIRS})
35 WRT_TARGET_LINK_LIBRARIES(${TEST_PKGS_LIBRARIES})
36
37 FILE(GLOB LOCALIZATION_TESTS_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*testcases.cpp")
38
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})
42