-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
69 lines (61 loc) · 2.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 3.12)
include(pico_sdk_import.cmake)
project(tricorder C CXX ASM)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR})
pico_sdk_init()
add_subdirectory(/home/dashy/pico-arduino-compat/libs/adafruit-as7341 build-pac-adafruit-as7341)
add_subdirectory(/home/dashy/pico-arduino-compat/libs/adafruit-bme680-library build-pac-adafruit-bme680-library)
add_subdirectory(/home/dashy/pico-arduino-compat/libs/adafruit-ltr390-library build-pac-adafruit-ltr390-library)
add_subdirectory(/home/dashy/pico-arduino-compat/libs/adafruit-pm25-aqi-sensor build-pac-adafruit-pm25-aqi-sensor)
add_subdirectory(/home/dashy/pico-arduino-compat/libs/tlv493d-a1b6 build-pac-tlv493d-a1b6)
add_subdirectory(/home/dashy/pico-arduino-compat/libs/sensirion-i2c-scd4x build-pac-sensirion-i2c-scd4x)
#add_subdirectory(/home/dashy/pico-arduino-compat/libs/adafruit-busio build-pac-adafruit-busio)
add_library(Tricorder_Sensor Tricorder_Sensor.cpp)
add_library(Tricorder_AS7341 Tricorder_AS7341.cpp)
add_library(Tricorder_BME688 Tricorder_BME688.cpp)
add_library(Tricorder_LTR390 Tricorder_LTR390.cpp)
add_library(Tricorder_PMSA003I Tricorder_PMSA003I.cpp)
add_library(Tricorder_TLV493D Tricorder_TLV493D.cpp)
add_library(Tricorder_SCD41 Tricorder_SCD41.cpp)
add_executable(sensor_manager sensor_manager.cpp)
target_link_libraries(Tricorder_Sensor
pico_stdlib
)
target_link_libraries(Tricorder_AS7341
pico_stdlib
pac-adafruit-as7341
)
target_link_libraries(Tricorder_BME688
pico_stdlib
pac-adafruit-bme680-library
)
target_link_libraries(Tricorder_LTR390
pico_stdlib
pac-adafruit-ltr390-library
)
target_link_libraries(Tricorder_PMSA003I
pico_stdlib
pac-adafruit-pm25-aqi-sensor
)
target_link_libraries(Tricorder_TLV493D
pico_stdlib
pac-tlv493d-a1b6
)
target_link_libraries(Tricorder_SCD41
pico_stdlib
pac-sensirion-i2c-scd4x
)
target_link_libraries(sensor_manager
pico_stdlib
#pac-adafruit-as7341
Tricorder_Sensor
Tricorder_AS7341
Tricorder_BME688
Tricorder_LTR390
Tricorder_PMSA003I
Tricorder_TLV493D
Tricorder_SCD41
)
pico_add_extra_outputs(sensor_manager)