-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added includes to allow for libraries to be linked to out-of-tree
- Loading branch information
Showing
43 changed files
with
326 additions
and
52 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
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
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,12 +1,14 @@ | ||
add_library(automation INTERFACE) | ||
|
||
target_sources(automation INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/automation.cpp | ||
) | ||
|
||
target_include_directories(automation INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
#include(${PIMORONI_PICO_PATH}/drivers/analog/analog.cmake) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(automation INTERFACE pico_stdlib hardware_pwm hardware_i2c pimoroni_i2c analog) | ||
if(NOT TARGET analog) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/analog/analog.cmake) | ||
endif() | ||
|
||
add_library(automation INTERFACE) | ||
|
||
target_sources(automation INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/automation.cpp | ||
) | ||
|
||
target_include_directories(automation INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(automation INTERFACE pico_stdlib hardware_pwm hardware_i2c pimoroni_i2c analog) |
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,11 +1,23 @@ | ||
set(LIB_NAME badger2040) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE bitmap_fonts hershey_fonts pico_stdlib hardware_pwm uc8151_legacy) | ||
if(NOT TARGET uc8151_legacy) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/uc8151_legacy/uc8151_legacy.cmake) | ||
endif() | ||
|
||
if(NOT TARGET bitmap_fonts) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../bitmap_fonts/bitmap_fonts.cmake) | ||
endif() | ||
|
||
if(NOT TARGET hershey_fonts) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../hershey_fonts/hershey_fonts.cmake) | ||
endif() | ||
|
||
set(LIB_NAME badger2040) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE bitmap_fonts hershey_fonts uc8151_legacy pico_stdlib hardware_pwm) |
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
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
8 changes: 8 additions & 0 deletions
8
libraries/breakout_encoder_wheel/breakout_encoder_wheel.cmake
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
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
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
4 changes: 4 additions & 0 deletions
4
libraries/breakout_potentiometer/breakout_potentiometer.cmake
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
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
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,11 +1,35 @@ | ||
set(LIB_NAME inky_frame) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE hardware_i2c pico_graphics hardware_spi hardware_pwm bitmap_fonts hershey_fonts pico_stdlib sdcard fatfs pcf85063a uc8159 jpegdec) | ||
if(NOT TARGET sdcard) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdcard/sdcard.cmake) | ||
endif() | ||
|
||
if(NOT TARGET fatfs) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/fatfs/fatfs.cmake) | ||
endif() | ||
|
||
if(NOT TARGET pcf85063a) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/pcf85063a/pcf85063a.cmake) | ||
endif() | ||
|
||
if(NOT TARGET uc8159) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/uc8159/uc8159.cmake) | ||
endif() | ||
|
||
if(NOT TARGET jpegdec) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../jpegdec/jpegdec.cmake) | ||
endif() | ||
|
||
if(NOT TARGET pico_graphics) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../pico_graphics/pico_graphics.cmake) | ||
endif() | ||
|
||
set(LIB_NAME inky_frame) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE hardware_i2c pico_graphics hardware_spi hardware_pwm bitmap_fonts hershey_fonts pico_stdlib sdcard fatfs pcf85063a uc8159 jpegdec) |
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,13 +1,41 @@ | ||
set(LIB_NAME inky_frame_7) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE hardware_i2c pico_graphics hardware_spi hardware_pwm bitmap_fonts hershey_fonts pico_stdlib sdcard fatfs pcf85063a psram_display inky73 jpegdec) | ||
|
||
if(NOT TARGET sdcard) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/sdcard/sdcard.cmake) | ||
endif() | ||
|
||
if(NOT TARGET fatfs) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/fatfs/fatfs.cmake) | ||
endif() | ||
|
||
if(NOT TARGET pcf85063a) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/pcf85063a/pcf85063a.cmake) | ||
endif() | ||
|
||
if(NOT TARGET psram_display) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/psram_display/psram_display.cmake) | ||
endif() | ||
|
||
if(NOT TARGET inky73) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../../drivers/inky73/inky73.cmake) | ||
endif() | ||
|
||
if(NOT TARGET jpegdec) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../jpegdec/jpegdec.cmake) | ||
endif() | ||
|
||
if(NOT TARGET pico_graphics) | ||
include(${CMAKE_CURRENT_LIST_DIR}/../pico_graphics/pico_graphics.cmake) | ||
endif() | ||
|
||
set(LIB_NAME inky_frame_7) | ||
add_library(${LIB_NAME} INTERFACE) | ||
|
||
target_sources(${LIB_NAME} INTERFACE | ||
${CMAKE_CURRENT_LIST_DIR}/${LIB_NAME}.cpp | ||
) | ||
|
||
target_include_directories(${LIB_NAME} INTERFACE ${CMAKE_CURRENT_LIST_DIR}) | ||
|
||
# Pull in pico libraries that we need | ||
target_link_libraries(${LIB_NAME} INTERFACE hardware_i2c pico_graphics hardware_spi hardware_pwm bitmap_fonts hershey_fonts pico_stdlib sdcard fatfs pcf85063a psram_display inky73 jpegdec) | ||
|
||
target_compile_options(${LIB_NAME} INTERFACE -Wno-error=reorder) |
Oops, something went wrong.