-
Notifications
You must be signed in to change notification settings - Fork 0
Reorganise libs #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorganise libs #34
Conversation
… into their corresponding libs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR tackles the issue of our long building time, the code has compiled through tests and can now be merged
LoRa4Raspi/CMakeLists.txt
Outdated
| set(LORA_SOURCES src/LoRa.cpp | ||
| src/itoa.cpp | ||
| src/LoopbackStream.cpp | ||
| src/Print.cpp | ||
| src/Stream.cpp | ||
| src/WString.cpp) | ||
| add_library(LoRa4Raspi ${LORA_SOURCES}) | ||
| target_include_directories(LoRa4Raspi PUBLIC include) | ||
| target_link_libraries(LoRa4Raspi PUBLIC pigpio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much better use of library creation
…ase (flight_computer)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good changes ready to merge
| set(FIREHORN_FC_SOURCES | ||
| ${DATA_DIR}/data.cpp | ||
| ${DATA_DIR}/data.h | ||
| ${DATA_DIR}/sensors.cpp | ||
| ${DATA_DIR}/sensors.h | ||
| ${DATA_DIR}/telecom.cpp | ||
| ${DATA_DIR}/telecom.h | ||
|
|
||
| ${FLIGHT_CONTROL_DIR}/av_state.cpp | ||
| ${FLIGHT_CONTROL_DIR}/av_state.h | ||
| ${FLIGHT_CONTROL_DIR}/thresholds.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thats a much more efficient way of compiling the FC
It's just about redefining what we consider a library or not in our source files. I don't think creating a static library for each single cxx file is a good idea. Static libraries are meant to regroup several files that share one purpose. So I grouped each module into a library, and like that no need to relink each single "atomic" lib to a test executable. If a test file uses adxl375.cpp, just link with libadxl375.