Update User Agent String
[framework/web/wrt-commons.git] / build / rpc / CMakeLists.txt
1 # Copyright (c) 2011 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      Lukasz Marek (l.marek@samsung.com)
17 # @version     1.0
18 # @brief
19 #
20
21 # Check required modules
22 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(SYS_EFL_RPC
24     ecore
25     appcore-efl
26     REQUIRED
27 )
28
29 # Add core include directories
30 INCLUDE_DIRECTORIES(
31     ${DPL_LOG_INCLUDE_DIR}
32     ${DPL_CORE_INCLUDE_DIR}
33     ${DPL_SOCKET_INCLUDE_DIR}
34     ${DPL_EVENT_INCLUDE_DIR}
35     ${DPL_RPC_INCLUDE_DIR}
36     ${SYS_EFL_RPC_INCLUDE_DIRS}
37 )
38
39 LINK_DIRECTORIES(
40     ${SYS_EFL_RPC_LIBRARY_DIRS}
41 )
42
43 # Base EFL based DPL library
44 SET(DPL_EFL_RPC_LIBRARY "${PROJECT_NAME}-rpc-efl")
45
46 # Build shared library
47
48 ADD_LIBRARY(${TARGET_DPL_RPC_EFL} SHARED  ${DPL_RPC_SOURCES})
49
50 TARGET_LINK_LIBRARIES(${TARGET_DPL_RPC_EFL}
51     ${SYS_EFL_RPC_LIBRARIES}
52     ${TARGET_DPL_EFL}
53     ${TARGET_DPL_EVENT_EFL}
54     ${TARGET_DPL_SOCKET_EFL}
55 )
56
57 # Target library properties
58 SET_TARGET_PROPERTIES(${TARGET_DPL_RPC_EFL} PROPERTIES
59     SOVERSION ${API_VERSION} 
60  VERSION ${VERSION}
61     CLEAN_DIRECT_OUTPUT 1
62     OUTPUT_NAME ${DPL_EFL_RPC_LIBRARY})
63
64 # Install libraries
65 INSTALL(TARGETS ${TARGET_DPL_RPC_EFL}
66         DESTINATION lib)
67
68 # Install detail headers
69 INSTALL(FILES ${DPL_RPC_HEADERS}
70         DESTINATION include/dpl-efl/dpl/rpc)
71
72 # Install pkgconfig script
73 configure_and_install_pkg(dpl-rpc-efl.pc)