Hi,
I'm working with the RP2040 and their SDK which is heavily dependent on cmake. Setting up an "externally built executable" works well, as documented on other parts of this forum, however there are a couple of problems...
1. Manually managing the user_include_directories is painful (I know it doesn't change much, but seems bad to hardcode stuff) ... and this is needed to ensure the editor looks in all the right places for prototypes etc.
2. Any defines in the CMakeLists.txt file are not visible to SES and therefore the highlighting/lowlighting of code around #ifdefs is not correct and can be very misleading. Obviously I could also manually enter all of these in Preprocess definitions ... but again manually editing seems wrong. And these do change quite frequently.
I'm thinking about writing a small script as part of the build process that uses relevant bits of the cmake output and updates the .emProject file (if needed) so that it always have the correct set of defines and include directories. However that also feels wrong.
Is there any other sensible way of doing this? i.e. referencing a file that contains the list of paths, or list of defines? Or some other way?
Many thanks,
Lee.
I'm working with the RP2040 and their SDK which is heavily dependent on cmake. Setting up an "externally built executable" works well, as documented on other parts of this forum, however there are a couple of problems...
1. Manually managing the user_include_directories is painful (I know it doesn't change much, but seems bad to hardcode stuff) ... and this is needed to ensure the editor looks in all the right places for prototypes etc.
2. Any defines in the CMakeLists.txt file are not visible to SES and therefore the highlighting/lowlighting of code around #ifdefs is not correct and can be very misleading. Obviously I could also manually enter all of these in Preprocess definitions ... but again manually editing seems wrong. And these do change quite frequently.
I'm thinking about writing a small script as part of the build process that uses relevant bits of the cmake output and updates the .emProject file (if needed) so that it always have the correct set of defines and include directories. However that also feels wrong.
Is there any other sensible way of doing this? i.e. referencing a file that contains the list of paths, or list of defines? Or some other way?
Many thanks,
Lee.