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_LOG
28 # Add core include directories
30 ${DPL_LOG_INCLUDE_DIR}
31 ${SYS_EFL_LOG_INCLUDE_DIRS}
35 ${SYS_EFL_LOG_LIBRARY_DIRS}
38 # Base EFL based DPL library
39 SET(DPL_EFL_LOG_LIBRARY "${PROJECT_NAME}-log-efl")
41 # Build shared library
43 ADD_LIBRARY(${TARGET_DPL_LOG_EFL} SHARED ${DPL_LOG_SOURCES})
45 TARGET_LINK_LIBRARIES(${TARGET_DPL_LOG_EFL}
46 ${SYS_EFL_LOG_LIBRARIES}
49 # Target library properties
50 SET_TARGET_PROPERTIES(${TARGET_DPL_LOG_EFL} PROPERTIES
53 OUTPUT_NAME ${DPL_EFL_LOG_LIBRARY})
56 INSTALL(TARGETS ${TARGET_DPL_LOG_EFL}
58 PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
60 INSTALL(FILES ${DPL_LOG_HEADERS}
61 DESTINATION include/dpl-efl/dpl/log)
63 # Install pkgconfig script
64 INSTALL(FILES dpl-log-efl.pc
65 DESTINATION lib/pkgconfig)