• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14cmake_minimum_required(VERSION 3.16.5)
15
16project(nativeapi_battery)
17
18set(MODULE_NAME nativeapi_battery)
19
20set(CMAKE_CXX_STANDARD 11)
21set(CMAKE_CXX_STANDARD_REQUIRED ON)
22set(CMAKE_INCLUDE_CURRENT_DIR ON)
23
24# header files
25include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include
26                    ${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../../third_party/bounds_checking_function/include)
27
28# source files
29aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/src BATTERY)
30
31add_library(${MODULE_NAME} STATIC
32    ${BATTERY}
33    )
34target_link_libraries(${MODULE_NAME} ui jsfwk)
35target_include_directories(${MODULE_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)