mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
The wpimath library is a new library designed to separate the reusable math functionality from the common utility library (wpiutil) and the hardware-dependent library (wpilibc/j). Package names / include file names were NOT changed to minimize breakage. In a future year it would be good to revamp these for a more uniform user experience and to reduce the risk of accidental naming conflicts. While theoretically all of this functionality could be placed into wpiutil, several pieces of this library (e.g. DARE) are very time-consuming to compile, so it's nice to avoid this expense for users who only want cscore or ntcore. It also allows for easy future separation of build tasks vs number of workers on memory-constrained machines. This moves the following functionality from wpiutil into wpimath: - Eigen - ejml - Drake - DARE - wpiutil.math package (Matrix etc) - units And the following functionality from wpilibc/j into wpimath: - Geometry - Kinematics - Spline - Trajectory - LinearFilter - MedianFilter - Feed-forward controllers
17 lines
532 B
CMake
17 lines
532 B
CMake
project(halsim_gui)
|
|
|
|
include(CompileWarnings)
|
|
|
|
file(GLOB halsim_gui_src src/main/native/cpp/*.cpp)
|
|
|
|
add_library(halsim_gui MODULE ${halsim_gui_src})
|
|
wpilib_target_warnings(halsim_gui)
|
|
set_target_properties(halsim_gui PROPERTIES DEBUG_POSTFIX "d")
|
|
target_link_libraries(halsim_gui PUBLIC hal ntcore wpimath PRIVATE imgui)
|
|
|
|
target_include_directories(halsim_gui PRIVATE src/main/native/include)
|
|
|
|
set_property(TARGET halsim_gui PROPERTY FOLDER "libraries")
|
|
|
|
install(TARGETS halsim_gui EXPORT halsim_gui DESTINATION "${main_lib_dest}")
|