-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-add cmake file for main file -add cmake file for temperature module -add cmake file for uart module
- Loading branch information
1 parent
6a095fe
commit 22145b9
Showing
3 changed files
with
38 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.13) | ||
|
||
# initialize the SDK directly | ||
include(pico_sdk_import.cmake) | ||
|
||
project(RASPBERRY_PI_PICO_TEMPERATURE) | ||
|
||
# initialize the Raspberry Pi Pico SDK | ||
pico_sdk_init() | ||
|
||
add_compile_options(-Wall | ||
-Werror | ||
) | ||
|
||
# rest of your project | ||
add_executable(main | ||
main.c | ||
) | ||
|
||
add_subdirectory(temperature) | ||
add_subdirectory(uart) | ||
|
||
# Add pico_stdlib library which aggregates commonly used features | ||
target_link_libraries(main pico_stdlib temperature uart) | ||
|
||
|
||
# create map/bin/hex/uf2 file in addition to ELF. | ||
pico_add_extra_outputs(main) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
file(GLOB FILES *.c *.h) | ||
|
||
add_library(temperature ${FILES}) | ||
|
||
target_link_libraries(temperature pico_stdlib) |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
file(GLOB FILES *.c *.h) | ||
|
||
add_library(uart ${FILES}) | ||
|
||
target_link_libraries(uart pico_stdlib) |