Add heirarchical build to mimic pico-examples
This commit is contained in:
parent
90d3ab8178
commit
3e043bd39a
|
@ -32,3 +32,4 @@
|
|||
*.app
|
||||
|
||||
**/build
|
||||
.vscode
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
# Pull in PICO SDK (must be before project)
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(pico_examples C CXX ASM)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Initialize the SDK
|
||||
pico_sdk_init()
|
||||
|
||||
# Example projects
|
||||
add_subdirectory(pack)
|
|
@ -0,0 +1,4 @@
|
|||
if (NOT PICO_NO_HARDWARE)
|
||||
add_subdirectory(display)
|
||||
add_subdirectory(unicorn)
|
||||
endif ()
|
|
@ -1,15 +1,3 @@
|
|||
cmake_minimum_required(VERSION 3.12)
|
||||
|
||||
# Pull in PICO SDK (must be before project)
|
||||
include(pico_sdk_import.cmake)
|
||||
|
||||
project(pico_examples C CXX ASM)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
# Initialize the SDK
|
||||
pico_sdk_init()
|
||||
|
||||
add_executable(
|
||||
display
|
||||
demo.cpp
|
||||
|
|
Loading…
Reference in New Issue