This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions[bot]
committed
Sep 16, 2023
1 parent
63ba897
commit 646831a
Showing
9 changed files
with
68 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,8 @@ | ||
# | ||
# Copyright (c) 2021 Nordic Semiconductor ASA | ||
# Copyright (c) 2023 Nordic Semiconductor ASA | ||
# | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
# | ||
|
||
target_include_directories(app PRIVATE .) | ||
target_sources_ifdef(CONFIG_EXTERNAL_SENSORS app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/ext_sensors.c) | ||
|
||
if (CONFIG_EXTERNAL_SENSORS_BME680_BSEC) | ||
target_sources(app PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/ext_sensors_bsec.c) | ||
set(bsec_dir ${CONFIG_EXTERNAL_SENSORS_BME680_BSEC_PATH}) | ||
if (CONFIG_FP_SOFTABI) | ||
set(BSEC_LIB_DIR ${bsec_dir}/algo/normal_version/bin/gcc/Cortex_M33) | ||
endif() | ||
if (CONFIG_FP_HARDABI) | ||
set(BSEC_LIB_DIR ${bsec_dir}/algo/normal_version/bin/gcc/Cortex_M33F) | ||
endif() | ||
|
||
if(NOT EXISTS "${BSEC_LIB_DIR}/libalgobsec.a") | ||
assert(0 "Could not find BSEC library. Minimum version is 1.4.8.0_Generic_Release") | ||
endif() | ||
|
||
target_include_directories(app PRIVATE ${bsec_dir}/examples/bsec_iot_example) | ||
target_include_directories(app PRIVATE ${BSEC_LIB_DIR}) | ||
|
||
target_sources(app PRIVATE ${bsec_dir}/examples/bsec_iot_example/bsec_integration.c) | ||
target_sources(app PRIVATE ${bsec_dir}/examples/bsec_iot_example/bme680.c) | ||
|
||
add_library(bsec_lib STATIC IMPORTED GLOBAL) | ||
add_dependencies(bsec_lib math_lib bsec_target) | ||
|
||
set_target_properties(bsec_lib PROPERTIES IMPORTED_LOCATION "${BSEC_LIB_DIR}/libalgobsec.a") | ||
set_target_properties(bsec_lib PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${BSEC_LIB_DIR}) | ||
|
||
target_link_libraries(bsec_lib INTERFACE -L${LIBC_LIBRARY_DIR}) | ||
target_link_libraries(app PUBLIC bsec_lib) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.