File tree 3 files changed +28
-6
lines changed
3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change
1
+ set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
2
+
1
3
cmake_minimum_required (VERSION 3.26)
2
4
3
5
include (pico_sdk_import.cmake)
@@ -22,4 +24,5 @@ IF(NOT DEFINED "ENV{TC_CMAKE_EXCLUDE_EXAMPLES}")
22
24
add_subdirectory (nativeExamples/ControlAppOledKeyboardWifi)
23
25
add_subdirectory (nativeExamples/UsingMatrixKeyboard)
24
26
add_subdirectory (nativeExamples/UnicodeHandlerTest)
25
- ENDIF ()
27
+ ENDIF ()
28
+
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ include(FetchContent)
11
11
# TcMenuLog
12
12
# AdafruitGFXNativePort
13
13
# SimpleCollections
14
+ # LiquidCrystalIO
14
15
15
16
16
- #SET(TCMENU_BASE_GIT_REPO "https://github.com/mwinters-stuff")
17
- SET (TCMENU_BASE_GIT_REPO "https://github.com/TcMenu/" )
17
+ SET (TCMENU_BASE_GIT_REPO "https://github.com/TcMenu" )
18
18
19
19
# Fetch the TcMenu git repo
20
20
FetchContent_Declare(
@@ -64,6 +64,14 @@ FetchContent_Declare(
64
64
SOURCE_SUBDIR cmake
65
65
)
66
66
67
+ # Fetch the LiquidCrystalIO git repo
68
+ FetchContent_Declare(
69
+ LiquidCrystalIO
70
+ GIT_REPOSITORY ${TCMENU_BASE_GIT_REPO} /LiquidCrystalIO.git
71
+ GIT_TAG main # Use a stable branch, tag, or commit hash
72
+ SOURCE_SUBDIR cmake
73
+ )
74
+
67
75
# Fetch the SimpleCollections git repo
68
76
FetchContent_Declare(
69
77
SimpleCollections
@@ -72,6 +80,6 @@ FetchContent_Declare(
72
80
SOURCE_SUBDIR cmake
73
81
)
74
82
75
- FetchContent_MakeAvailable(tcMenuLib IoAbstraction TaskManagerIO TcUnicodeHelper TcMenuLog AdafruitGFX SimpleCollections)
83
+ FetchContent_MakeAvailable(tcMenuLib IoAbstraction TaskManagerIO TcUnicodeHelper TcMenuLog AdafruitGFX SimpleCollections LiquidCrystalIO )
76
84
77
85
endfunction ()
Original file line number Diff line number Diff line change @@ -18,9 +18,20 @@ if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_PATH} AND (NOT PICO_SDK_FETCH_FROM_GIT_P
18
18
message ("Using PICO_SDK_FETCH_FROM_GIT_PATH from environment ('${PICO_SDK_FETCH_FROM_GIT_PATH} ')" )
19
19
endif ()
20
20
21
+ if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_TAG} AND (NOT PICO_SDK_FETCH_FROM_GIT_TAG))
22
+ set (PICO_SDK_FETCH_FROM_GIT_TAG $ENV{PICO_SDK_FETCH_FROM_GIT_TAG} )
23
+ message ("Using PICO_SDK_FETCH_FROM_GIT_TAG from environment ('${PICO_SDK_FETCH_FROM_GIT_TAG} ')" )
24
+ endif ()
25
+
26
+ if (PICO_SDK_FETCH_FROM_GIT AND NOT PICO_SDK_FETCH_FROM_GIT_TAG)
27
+ set (PICO_SDK_FETCH_FROM_GIT_TAG "master" )
28
+ message ("Using master as default value for PICO_SDK_FETCH_FROM_GIT_TAG" )
29
+ endif ()
30
+
21
31
set (PICO_SDK_PATH "${PICO_SDK_PATH} " CACHE PATH "Path to the Raspberry Pi Pico SDK" )
22
32
set (PICO_SDK_FETCH_FROM_GIT "${PICO_SDK_FETCH_FROM_GIT} " CACHE BOOL "Set to ON to fetch copy of SDK from git if not otherwise locatable" )
23
33
set (PICO_SDK_FETCH_FROM_GIT_PATH "${PICO_SDK_FETCH_FROM_GIT_PATH} " CACHE FILEPATH "location to download SDK" )
34
+ set (PICO_SDK_FETCH_FROM_GIT_TAG "${PICO_SDK_FETCH_FROM_GIT_TAG} " CACHE FILEPATH "release tag for SDK" )
24
35
25
36
if (NOT PICO_SDK_PATH)
26
37
if (PICO_SDK_FETCH_FROM_GIT)
@@ -34,14 +45,14 @@ if (NOT PICO_SDK_PATH)
34
45
FetchContent_Declare(
35
46
pico_sdk
36
47
GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk
37
- GIT_TAG master
48
+ GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG}
38
49
GIT_SUBMODULES_RECURSE FALSE
39
50
)
40
51
else ()
41
52
FetchContent_Declare(
42
53
pico_sdk
43
54
GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk
44
- GIT_TAG master
55
+ GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG}
45
56
)
46
57
endif ()
47
58
You can’t perform that action at this time.
0 commit comments