|
@@ -20,11 +20,13 @@ add_executable(${PROJECT_NAME}
|
|
|
# Create map/bin/hex/uf2 files
|
|
|
pico_add_extra_outputs(${PROJECT_NAME})
|
|
|
|
|
|
+# Add local folder with libs
|
|
|
add_subdirectory(libs/foo)
|
|
|
-target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/inc)
|
|
|
|
|
|
+# Set local include directories
|
|
|
+target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_SOURCE_DIR}/inc)
|
|
|
|
|
|
-# Link to pico_stdlib (gpio, time, etc. functions)
|
|
|
+# Link to external lib pico_stdlib (gpio, time, etc. functions) and internal lib
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
pico_stdlib
|
|
|
foo
|