I have a project in VSCode/PIO. It’s got the following structure:
myproject
src
kiniNetworkTest.cpp
kiniNetworkTest.h
kiniRTCTest.cpp
kiniRTCTest.h
kiniTestUtils.cpp
kiniTestUtils.h
kiniOLEDTest.cpp
kiniOLEDTest.h
kiniNetworkUtils.cpp
kiniNetworkUtils.h
kiniRTCUtils.cpp
kiniRTCUtils.h
kiniTest.cpp
kiniTest.h
lib
include
[etc]
I want to add these files:
kiniSendMessage.cpp
kiniSendMessage.h
kiniRTC.cpp
kiniRTC.h
kiniMain.cpp
kiniMain.h
When I go to build, I somehow would like to choose between building test firmware or the main firmware.
I read the following
and it shows how to filter some files, but I am wondering if there is a better way instead of filtering, to specify files individually (like make?).
Are there better ways to do this? Should I make separate projects with shared libraries or shared source files?