Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

SDK • Re: cmake: Mixed host based and RP2040 project...

$
0
0
I've managed to achieve a mostly acceptable result by using ExternalProject...

Code:

## Add the external project to make the tool...#include(ExternalProject)ExternalProject_Add(Tool    PREFIX tool    SOURCE_DIR ${CMAKE_SOURCE_DIR}/ext_tool    BINARY_DIR ${CMAKE_BINARY_DIR}/tool    CMAKE_ARGS "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"    BUILD_ALWAYS 1    INSTALL_COMMAND "")
It's not perfect ... and doesn't show up properly in VSCode for editing, but it will probably be sufficient for now.

Thanks for the various pointers.

Statistics: Posted by essele — Mon Apr 01, 2024 1:18 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles