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 Soyoung Kim (sy037.kim@samsung.com)
21 # Check required modules
22 INCLUDE(FindPkgConfig)
23 PKG_CHECK_MODULES(SYS_EFL_UTILS
31 # Add core include directories
33 ${DPL_LOG_INCLUDE_DIR}
34 ${DPL_CORE_INCLUDE_DIR}
36 ${SYS_EFL_UTILS_INCLUDE_DIRS}
37 ${DPL_UTILS_INCLUDE_DIR}
38 ${DPL_LOCALIZATION_INCLUDE_DIR}
41 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/modules/widget_dao/include)
42 INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/modules/vcore/src/vcore)
45 ${SYS_EFL_UTILS_LIBRARY_DIRS}
48 # Base EFL based DPL library
49 SET(DPL_EFL_UTILS_LIBRARY "${PROJECT_NAME}-utils-efl")
51 # Build shared library
53 ADD_LIBRARY(${TARGET_DPL_UTILS_EFL} SHARED
55 ${DPL_LOCALIZATION_SOURCES}
58 TARGET_LINK_LIBRARIES(${TARGET_DPL_UTILS_EFL}
59 ${SYS_EFL_UTILS_LIBRARIES}
61 ${TARGET_WRT_DAO_RW_LIB}
62 ${SYS_EFL_DB_LIBRARIES}
65 # Target library properties
66 SET_TARGET_PROPERTIES(${TARGET_DPL_UTILS_EFL} PROPERTIES
69 OUTPUT_NAME ${DPL_EFL_UTILS_LIBRARY})
72 INSTALL(TARGETS ${TARGET_DPL_UTILS_EFL}
74 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
76 # Install detail headers
77 INSTALL(FILES ${DPL_UTILS_HEADERS}
78 DESTINATION include/dpl-efl/dpl/utils)
80 INSTALL(FILES ${DPL_LOCALIZATION_HEADERS}
81 DESTINATION include/dpl-efl/dpl/localization)
83 # Install pkgconfig script
84 INSTALL(FILES dpl-utils-efl.pc
85 DESTINATION lib/pkgconfig)