mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Explicitly list required components when using FindJava and FindJNI Consolidate find_package calls for Java, JNI, and OpenCV into the root CMakeLists.txt file Remove references to main_lib_dest Install missing generated headers Flatten some if statements Use LinkMacOSGUI macro instead of hand rolling it Stop installing OpenCV libraries and an extra ntcorejni library; OpenCV JAR will still be installed to make it easy to use Only print platform version on Windows Prevent GUI modules from being built when wpimath is off, which would otherwise cause a build failure Simplify build configuration checks Clean up fieldImages JAR creation Place built JARs in the same subdir as installed JARs Remove unnecessary JAR includes Remove extra directories in target_include_directories Improve CMake docs
18 lines
559 B
CMake
18 lines
559 B
CMake
project(halsim_xrp)
|
|
|
|
include(CompileWarnings)
|
|
|
|
file(GLOB halsim_xrp_src src/main/native/cpp/*.cpp)
|
|
|
|
add_library(halsim_xrp SHARED ${halsim_xrp_src})
|
|
wpilib_target_warnings(halsim_xrp)
|
|
set_target_properties(halsim_xrp PROPERTIES DEBUG_POSTFIX "d")
|
|
target_link_libraries(halsim_xrp PUBLIC hal halsim_ws_core)
|
|
|
|
target_include_directories(halsim_xrp PRIVATE src/main/native/include)
|
|
|
|
set_property(TARGET halsim_xrp PROPERTY FOLDER "libraries")
|
|
|
|
install(TARGETS halsim_xrp EXPORT halsim_xrp)
|
|
export(TARGETS halsim_xrp FILE halsim_xrp.cmake NAMESPACE halsim_xrp::)
|