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.
15 # @file CMakeLists.txt
16 # @author Lukasz Marek (l.marek@samsung.com)
21 # Check required modules
22 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(SYS_EFL_EVENT
30 # Add core include directories
32 ${DPL_LOG_INCLUDE_DIR}
33 ${DPL_CORE_INCLUDE_DIR}
34 ${DPL_EVENT_INCLUDE_DIR}
37 INCLUDE_DIRECTORIES(SYSTEM ${SYS_EFL_EVENT_INCLUDE_DIRS})
40 ${SYS_EFL_EVENT_LIBRARY_DIRS}
43 # Base EFL based DPL library
44 SET(DPL_EFL_EVENT_LIBRARY "${PROJECT_NAME}-event-efl")
46 # Build shared library
48 ADD_LIBRARY(${TARGET_DPL_EVENT_EFL} SHARED ${DPL_EVENT_SOURCES})
50 TARGET_LINK_LIBRARIES(${TARGET_DPL_EVENT_EFL}
51 ${SYS_EFL_EVENT_LIBRARIES}
55 # Target library properties
56 SET_TARGET_PROPERTIES(${TARGET_DPL_EVENT_EFL} PROPERTIES
57 SOVERSION ${API_VERSION}
60 OUTPUT_NAME ${DPL_EFL_EVENT_LIBRARY})
63 INSTALL(TARGETS ${TARGET_DPL_EVENT_EFL}
66 # Install detail headers
67 INSTALL(FILES ${DPL_EVENT_HEADERS}
68 DESTINATION include/dpl-efl/dpl/event)
70 # Install pkgconfig script
71 CONFIGURE_AND_INSTALL_PKG(dpl-event-efl.pc)