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 Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com)
21 # Check required modules
22 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(SYS_EFL
26 capi-appfw-application
35 # Add core include directories
37 ${DPL_LOG_INCLUDE_DIR}
38 ${DPL_CORE_INCLUDE_DIR}
41 INCLUDE_DIRECTORIES(SYSTEM ${SYS_EFL_INCLUDE_DIRS})
43 LINK_DIRECTORIES(${SYS_EFL_LIBRARY_DIRS})
45 # Base EFL based DPL library
46 SET(DPL_EFL_LIBRARY "${PROJECT_NAME}-efl")
48 # Build shared library
49 ADD_LIBRARY(${TARGET_DPL_EFL} SHARED
54 TARGET_LINK_LIBRARIES(${TARGET_DPL_EFL} ${SYS_EFL_LIBRARIES} "-lrt")
56 # Target library properties
57 SET_TARGET_PROPERTIES(${TARGET_DPL_EFL} PROPERTIES
58 SOVERSION ${API_VERSION}
61 OUTPUT_NAME ${DPL_EFL_LIBRARY})
64 INSTALL(TARGETS ${TARGET_DPL_EFL}
67 # Install detail headers
68 INSTALL(FILES ${DPL_CORE_EFL_DETAIL_HEADERS}
69 DESTINATION include/dpl-efl/dpl)
71 # Install core headers
72 INSTALL(FILES ${DPL_CORE_HEADERS}
73 DESTINATION include/dpl-efl/dpl)
76 INSTALL(FILES ${DPL_LOG_HEADERS}
77 DESTINATION include/dpl-efl/dpl/log)
79 # Install pkgconfig script
80 CONFIGURE_AND_INSTALL_PKG(dpl-efl.pc)