mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-03 03:01:44 +00:00
[build] Make Protobuf optional in CMake build (#7061)
This commit is contained in:
@@ -235,5 +235,7 @@ class WPILIB_DLLEXPORT ArmFeedforward {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/controller/proto/ArmFeedforwardProto.h"
|
||||
#endif
|
||||
#include "frc/controller/struct/ArmFeedforwardStruct.h"
|
||||
|
||||
@@ -87,5 +87,7 @@ class WPILIB_DLLEXPORT DifferentialDriveFeedforward {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/controller/proto/DifferentialDriveFeedforwardProto.h"
|
||||
#endif
|
||||
#include "frc/controller/struct/DifferentialDriveFeedforwardStruct.h"
|
||||
|
||||
@@ -21,5 +21,7 @@ struct DifferentialDriveWheelVoltages {
|
||||
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/controller/proto/DifferentialDriveWheelVoltagesProto.h"
|
||||
#endif
|
||||
#include "frc/controller/struct/DifferentialDriveWheelVoltagesStruct.h"
|
||||
|
||||
@@ -225,5 +225,7 @@ class ElevatorFeedforward {
|
||||
};
|
||||
} // namespace frc
|
||||
|
||||
#ifndef NO_PROTOBUF
|
||||
#include "frc/controller/proto/ElevatorFeedforwardProto.h"
|
||||
#endif
|
||||
#include "frc/controller/struct/ElevatorFeedforwardStruct.h"
|
||||
|
||||
Reference in New Issue
Block a user