-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
55 lines (39 loc) · 1.59 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
# Generated Cmake Pico project file
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
# Pull in Raspberry Pi Pico SDK (must be before project)
include(pico_sdk_import.cmake)
project(Power_Management_HAT C CXX ASM)
# Initialise the Raspberry Pi Pico SDK
pico_sdk_init()
#添加编译子目录
add_subdirectory(./lib/Config)
add_subdirectory(./lib/GUI)
add_subdirectory(./lib/LCD)
add_subdirectory(./lib/Fonts)
add_subdirectory(./lib/INA219)
add_subdirectory(./lib/QMI8658)
add_subdirectory(./lib/MP28167)
add_subdirectory(./lib/PCF85063A)
add_subdirectory(./lib/Power_Management_Lib)
add_subdirectory(./examples)
#添加头文件目录
include_directories(./lib/Config)
include_directories(./lib/GUI)
include_directories(./lib/LCD)
include_directories(./lib/INA219)
include_directories(./lib/QMI8658)
include_directories(./lib/MP28167)
include_directories(./lib/PCF85063A)
include_directories(./lib/Power_Management_Lib)
include_directories(./examples)
# Add executable. Default name is the project name, version 0.1
add_executable(Power_Management_HAT Power_Management_HAT.c )
pico_set_program_name(Power_Management_HAT "Power_Management_HAT")
pico_set_program_version(Power_Management_HAT "0.1")
pico_enable_stdio_uart(Power_Management_HAT 1)
pico_enable_stdio_usb(Power_Management_HAT 1)
pico_add_extra_outputs(Power_Management_HAT)
# Add the standard library to the build
target_link_libraries(Power_Management_HAT examples LCD INA219 PCF85063A Power_Management_Lib QMI8658 GUI Fonts Config pico_stdlib hardware_i2c )