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 Grzegorz Krawczyk (g.krawczyk@samsung.com)
21 pkg_search_module(dpl REQUIRED dpl-efl)
23 set(PLUGINS_API_SUPPORT_SOURCES
24 ${CMAKE_CURRENT_SOURCE_DIR}/Plugin.cpp
25 ${CMAKE_CURRENT_SOURCE_DIR}/Object.cpp
26 ${CMAKE_CURRENT_SOURCE_DIR}/ObjectFactory.cpp
27 ${CMAKE_CURRENT_SOURCE_DIR}/PluginRegistration.cpp
28 ${CMAKE_CURRENT_SOURCE_DIR}/PluginRegistry.cpp
32 ${CMAKE_CURRENT_SOURCE_DIR}
36 ADD_LIBRARY(${TARGET_PLUGINS_API_SUPPORT} SHARED
37 ${PLUGINS_API_SUPPORT_SOURCES}
40 SET_TARGET_PROPERTIES(${TARGET_PLUGIN_API_SUPPORT} PROPERTIES
42 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
45 SET_TARGET_PROPERTIES(${TARGET_PLUGINS_API_SUPPORT} PROPERTIES
46 SOVERSION ${CMAKE_PROJECT_API_VERSION}
47 VERSION ${CMAKE_PROJECT_VERSION}
50 target_link_libraries(${TARGET_PLUGINS_API_SUPPORT}
54 INSTALL(TARGETS ${TARGET_PLUGINS_API_SUPPORT}
56 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
57 GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
61 ${CMAKE_CURRENT_SOURCE_DIR}/ExportedApi.h
62 ${CMAKE_CURRENT_SOURCE_DIR}/Plugin.h
63 ${CMAKE_CURRENT_SOURCE_DIR}/IObject.h
64 ${CMAKE_CURRENT_SOURCE_DIR}/ObjectFactory.h
65 ${CMAKE_CURRENT_SOURCE_DIR}/CallbackSupport.h
66 ${CMAKE_CURRENT_SOURCE_DIR}/tuple.h
67 ${CMAKE_CURRENT_SOURCE_DIR}/PluginSignals.h
68 ${CMAKE_CURRENT_SOURCE_DIR}/SignalSignature.h
69 ${CMAKE_CURRENT_SOURCE_DIR}/PluginRegistration.h
70 DESTINATION include/wrt-plugins-api-support)