1 # Copyright (c) 2013 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 # @author Yunchan Cho (yunchan.cho@samsung.com)
17 SET(TARGET_NAME ${TARGET_CORE_BUFFER})
18 SET(DEPS ${TARGET_NAME}_DEPS)
20 PKG_CHECK_MODULES(${DEPS}
28 ADD_DEFINITIONS(${${DEPS}_CFLAGS})
31 ${CMAKE_CURRENT_SOURCE_DIR}/RenderBuffer.cpp
32 ${CMAKE_CURRENT_SOURCE_DIR}/RenderBufferFactory.cpp
33 ${CMAKE_CURRENT_SOURCE_DIR}/BoxRenderBuffer.cpp
34 ${CMAKE_CURRENT_SOURCE_DIR}/PdRenderBuffer.cpp
38 ${${DEPS}_INCLUDE_DIRS}
39 ${CMAKE_CURRENT_SOURCE_DIR}
41 INCLUDE_DIRECTORIES(${HEADERS})
43 ADD_LIBRARY(${TARGET_NAME} STATIC ${SRCS})
45 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
47 LINK_FLAGS "-Wl,--as-needed -Wl,--hash-style=both"
50 SET_TARGET_PROPERTIES(${TARGET_NAME}
52 SOVERSION ${CMAKE_PROJECT_API_VERSION}
53 VERSION ${CMAKE_PROJECT_VERSION}
56 TARGET_LINK_LIBRARIES(${TARGET_NAME}
60 GET_FILENAME_COMPONENT(CURRENT_DIR_NAME ${CMAKE_CURRENT_SOURCE_DIR} NAME)
61 GET_FILENAME_COMPONENT(PARENT_DIR_ABSOLUTE_PATH ${CMAKE_CURRENT_SOURCE_DIR} PATH)
62 GET_FILENAME_COMPONENT(PARENT_DIR_NAME ${PARENT_DIR_ABSOLUTE_PATH} NAME)
64 INSTALL_FILE(IRenderBuffer.h include/${PROJECT_NAME}/${PARENT_DIR_NAME}/${CURRENT_DIR_NAME})
65 INSTALL_FILE(RenderBuffer.h include/${PROJECT_NAME}/${PARENT_DIR_NAME}/${CURRENT_DIR_NAME})
66 INSTALL_FILE(RenderBufferFactory.h include/${PROJECT_NAME}/${PARENT_DIR_NAME}/${CURRENT_DIR_NAME})
67 INSTALL_FILE(BoxRenderBuffer.h include/${PROJECT_NAME}/${PARENT_DIR_NAME}/${CURRENT_DIR_NAME})