# 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. # macro(install_header_file HEADER_FILE) INSTALL(FILES ${API_POWER_PATH}/${HEADER_FILE} DESTINATION ${DESTINATION_HEADER_PREFIX}/Power) endmacro() set(TARGET_NAME ${TARGET_MODULE_POWER}) include_directories( ${INCLUDES_PLATFORM_IMPLEMENTATION_POWER} ) set(SRCS ${SRCS_API_POWER} ${SRCS_PLATFORM_IMPLEMENTATION_POWER} ) add_library(${TARGET_NAME} SHARED ${SRCS}) target_link_libraries(${TARGET_NAME} ${LIBS_COMMONS} ${TARGET_COMMONS} ${LIBS_PLATFORM_IMPLEMENTATION_POWER} ) set_target_properties(${TARGET_NAME} PROPERTIES SOVERSION ${CMAKE_PACKAGE_VERSION}) INSTALL(TARGETS ${TARGET_NAME} LIBRARY DESTINATION ${DESTINATION_LIB_PREFIX}) install_header_file(Enums.h) install_header_file(EventCharging.h) install_header_file(EventLight.h) install_header_file(EventLow.h) install_header_file(EventRemaining.h) install_header_file(IBacklight.h) install_header_file(IBattery.h) install_header_file(IManager.h)