|
| 1 | +# If not stated otherwise in this file or this component's license file the |
| 2 | +# following copyright and licenses apply: |
| 3 | +# |
| 4 | +# Copyright 2020 RDK Management |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | +# you may not use this file except in compliance with the License. |
| 8 | +# You may obtain a copy of the License at |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# Unless required by applicable law or agreed to in writing, software |
| 13 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | +# See the License for the specific language governing permissions and |
| 16 | +# limitations under the License. |
| 17 | +set(PLUGIN_NAME HdmiCecSink) |
| 18 | +set(MODULE_NAME ${NAMESPACE}${PLUGIN_NAME}) |
| 19 | + |
| 20 | +find_package(${NAMESPACE}Plugins REQUIRED) |
| 21 | + |
| 22 | +add_library(${MODULE_NAME} SHARED |
| 23 | + HdmiCecSink.cpp |
| 24 | + Module.cpp |
| 25 | + ../helpers/utils.cpp) |
| 26 | + |
| 27 | +set_target_properties(${MODULE_NAME} PROPERTIES |
| 28 | + CXX_STANDARD 11 |
| 29 | + CXX_STANDARD_REQUIRED YES) |
| 30 | + |
| 31 | +find_package(DS) |
| 32 | +find_package(IARMBus) |
| 33 | +find_package(CEC) |
| 34 | + |
| 35 | +target_include_directories(${MODULE_NAME} PRIVATE ${IARMBUS_INCLUDE_DIRS} ../helpers) |
| 36 | +target_include_directories(${MODULE_NAME} PRIVATE ${CEC_INCLUDE_DIRS}) |
| 37 | +target_include_directories(${MODULE_NAME} PRIVATE ${DS_INCLUDE_DIRS}) |
| 38 | + |
| 39 | +target_link_libraries(${MODULE_NAME} PUBLIC ${NAMESPACE}Plugins::${NAMESPACE}Plugins ${IARMBUS_LIBRARIES} ${CEC_LIBRARIES} ${DS_LIBRARIES} ) |
| 40 | + |
| 41 | + |
| 42 | +install(TARGETS ${MODULE_NAME} |
| 43 | + DESTINATION lib/${STORAGE_DIRECTORY}/plugins) |
| 44 | + |
| 45 | +write_config(${PLUGIN_NAME}) |
0 commit comments