|
@@ -45,23 +45,20 @@ pico_set_program_version(${PROJECT_NAME} "0.1")
|
|
|
pico_enable_stdio_usb(${PROJECT_NAME} 1)
|
|
|
pico_enable_stdio_uart(${PROJECT_NAME} 1)
|
|
|
|
|
|
-# Create map/bin/hex/uf2 files
|
|
|
-pico_add_extra_outputs(${PROJECT_NAME})
|
|
|
-
|
|
|
# Add local folder with libs
|
|
|
add_subdirectory(libs/foo)
|
|
|
|
|
|
-# Add the standard include files to the build
|
|
|
-target_include_directories(${PROJECT_NAME} PRIVATE
|
|
|
- ${CMAKE_SOURCE_DIR}/inc
|
|
|
- ${CMAKE_CURRENT_LIST_DIR}
|
|
|
- ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
|
|
-)
|
|
|
-
|
|
|
# Link to external lib pico_stdlib (gpio, time, etc. functions) and internal lib
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
pico_stdlib
|
|
|
foo
|
|
|
)
|
|
|
|
|
|
+# Add the standard include files to the build
|
|
|
+target_include_directories(${PROJECT_NAME} PRIVATE
|
|
|
+ ${CMAKE_SOURCE_DIR}/inc
|
|
|
+ ${CMAKE_CURRENT_LIST_DIR}
|
|
|
+ ${CMAKE_CURRENT_LIST_DIR}/.. # for our common lwipopts or any other standard includes, if required
|
|
|
+)
|
|
|
|
|
|
+pico_add_extra_outputs(${PROJECT_NAME})
|