Here's the project cmakelists.txt if it is of interest
Code:
cmake_minimum_required(VERSION 3.13)set(PICO_SDK_FETCH_FROM_GIT off)set(PICO_PLATFORM rp2040)set(PICO_BOARD pico)include($ENV{PICO_SDK_PATH}/external/pico_sdk_import.cmake)project(p0 VERSION 1.0)pico_sdk_init()add_subdirectory(pico_i2c_mirror/i2c_slave)add_subdirectory(p0i2c)add_subdirectory(p0discrete)add_subdirectory(p0analog)add_subdirectory(p0beacon)add_subdirectory(p0id)add_subdirectory(p0time)set(CMAKE_C_STANDARD 11)set(CMAKE_CXX_STANDARD 17)include_directories(${p0i2c_SOURCE_DIR} )include_directories(${p0discrete_SOURCE_DIR} )include_directories(${p0analog_SOURCE_DIR} )include_directories(${p0beacon_SOURCE_DIR} )include_directories(${p0id_SOURCE_DIR} )include_directories(${p0time_SOURCE_DIR} )configure_file(p0.h.in p0.h)configure_file(ms1mmap.h.in ms1mmap.h)configure_file(gpionums.h.in gpionums.h)add_executable(p0 p0.c)target_link_libraries(p0 PUBLIC pico_stdlibpico_unique_idhardware_i2ci2c_slavep0i2cp0discretep0analogp0beaconp0idp0time)target_include_directories(p0 PUBLIC"${PROJECT_BINARY_DIR}")pico_enable_stdio_usb(p0 1)pico_enable_stdio_uart(p0 0)pico_add_extra_outputs(p0)
Statistics: Posted by kristerj — Wed Jan 15, 2025 8:21 pm