# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # @file CMakeLists.txt # @author Lukasz Marek (l.marek@samsung.com) # @version 1.0 # @brief # # Check required modules INCLUDE(FindPkgConfig) PKG_CHECK_MODULES(SYS_EFL_RPC ecore appcore-efl REQUIRED ) # Add core include directories INCLUDE_DIRECTORIES( ${DPL_LOG_INCLUDE_DIR} ${DPL_CORE_INCLUDE_DIR} ${DPL_SOCKET_INCLUDE_DIR} ${DPL_EVENT_INCLUDE_DIR} ${DPL_RPC_INCLUDE_DIR} ) INCLUDE_DIRECTORIES(SYSTEM ${SYS_EFL_RPC_INCLUDE_DIRS}) LINK_DIRECTORIES( ${SYS_EFL_RPC_LIBRARY_DIRS} ) # Base EFL based DPL library SET(DPL_EFL_RPC_LIBRARY "${PROJECT_NAME}-rpc-efl") # Build shared library ADD_LIBRARY(${TARGET_DPL_RPC_EFL} SHARED ${DPL_RPC_SOURCES}) TARGET_LINK_LIBRARIES(${TARGET_DPL_RPC_EFL} ${SYS_EFL_RPC_LIBRARIES} ${TARGET_DPL_EFL} ${TARGET_DPL_EVENT_EFL} ${TARGET_DPL_SOCKET_EFL} ) # Target library properties SET_TARGET_PROPERTIES(${TARGET_DPL_RPC_EFL} PROPERTIES SOVERSION ${API_VERSION} VERSION ${VERSION} CLEAN_DIRECT_OUTPUT 1 OUTPUT_NAME ${DPL_EFL_RPC_LIBRARY}) # Install libraries INSTALL(TARGETS ${TARGET_DPL_RPC_EFL} DESTINATION lib) # Install detail headers INSTALL(FILES ${DPL_RPC_HEADERS} DESTINATION include/dpl-efl/dpl/rpc) # Install pkgconfig script CONFIGURE_AND_INSTALL_PKG(dpl-rpc-efl.pc)