1 # Copyright (c) 2011 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.
16 # @file CMakeLists.txt
17 # @author Lukasz Marek (l.marek@samsung.com)
18 # @author Yunchan Cho (yunchan.cho@samgsung.com)
22 PKG_CHECK_MODULES(WRT_PLUGIN_DEP
27 set(PLUGIN_MODULE_SRC_DIR ${PROJECT_SOURCE_DIR}/src/plugin-service)
29 set(PLUGIN_MODULE_SOURCES
30 ${PLUGIN_MODULE_SRC_DIR}/wrt_plugin_module.cpp
32 ADD_DEFINITIONS(${WRT_PLUGIN_DEP_CFLAGS})
34 ${PLUGIN_MODULE_SRC_DIR}
35 ${WRT_PLUGIN_DEP_INCLUDE_DIRS}
38 ADD_LIBRARY(${TARGET_PLUGIN_MODULE_LIB} SHARED
39 ${PLUGIN_MODULE_SOURCES}
42 SET_TARGET_PROPERTIES(${TARGET_PLUGIN_MODULE_LIB} PROPERTIES
44 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
47 SET_TARGET_PROPERTIES(${TARGET_PLUGIN_MODULE_LIB} PROPERTIES
48 SOVERSION ${PROJECT_API_VERSION}
49 VERSION ${PROJECT_VERSION}
52 target_link_libraries(${TARGET_PLUGIN_MODULE_LIB}
53 ${WRT_PLUGIN_DEP_LIBRARIES}
56 INSTALL(TARGETS ${TARGET_PLUGIN_MODULE_LIB}