7303b3cf3cc27ed6ee93002f1b9dcef1ae4689cd
[framework/web/wrt-installer.git] / tests / general / common / CMakeLists.txt
1 # Copyright (c) 2013 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      Tomasz Iwanek (t.iwanek@samsung.com)
17 # @author      Karol Pawlowski (k.pawlowski@samsung.com)
18 # @version     1.0
19 # @brief
20 #
21
22 SET(COMMON_INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/include")
23
24 WRT_TEST_LIBRARY(${WRT_TEST_LIBRARY})
25
26 WRT_INCLUDE_DIRECTORIES(
27     ${COMMON_LIB_PKGS_INCLUDE_DIRS}
28     ${COMMON_INCLUDES}
29     )
30 WRT_LINK_DIRECTORIES(${COMMON_LIB_PKGS_LIBRARY_DIRS})
31 WRT_TARGET_LINK_LIBRARIES(${COMMON_LIB_PKGS_LIBRARIES})
32
33 SET(WRT_DETAIL_SOURCES
34     ${CMAKE_CURRENT_SOURCE_DIR}/src/InstallerWrapper.cpp
35     ${CMAKE_CURRENT_SOURCE_DIR}/src/ManifestFile.cpp
36 )
37
38 INCLUDE_DIRECTORIES(${COMMON_INCLUDES})
39 INCLUDE_DIRECTORIES(${COMMON_LIB_PKGS_INCLUDE_DIRS})
40
41 ADD_LIBRARY(${WRT_TEST_LIBRARY} STATIC ${WRT_DETAIL_SOURCES})