Files
cariflex/tools/EVerest-main/lib/3rd_party/nanopb/CMakeLists.txt
Eric F d398a6ced2 Add extracted tools: CitrineOS, OpenOCPP, ShapeShifter
- CitrineOS core extracted (CSMS OCPP 2.0.1)
- OpenOCPP extracted (firmware OCPP 1.6J/2.0.1)
- ShapeShifter library installed (pip install -e)
- ShapeShifter specification extracted
- EVerest extracted

TODO updated with progress
2026-06-08 00:38:27 -04:00

40 lines
805 B
CMake

add_library(nanopb STATIC)
add_library(everest::nanopb ALIAS nanopb)
target_sources(nanopb
PRIVATE
nanopb/pb_common.c
nanopb/pb_decode.c
nanopb/pb_encode.c
)
# copy public header files for correct include prefix
file(COPY
nanopb/pb.h
nanopb/pb_encode.h
nanopb/pb_decode.h
DESTINATION
${THIRDPARTY_INCLUDE_TMP_DIR}/nanopb
)
target_include_directories(nanopb
PUBLIC
$<BUILD_INTERFACE:${EVEREST_CORE_LIB_INCLUDE_DIR}>
)
set_target_properties(nanopb PROPERTIES OUTPUT_NAME "everest_nanopb")
install(TARGETS nanopb
EXPORT everest-core-targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(
DIRECTORY
${THIRDPARTY_INCLUDE_TMP_DIR}/nanopb
DESTINATION
${THIRDPARTY_INCLUDE_INSTALL_DIR}/
)