2023-09-17 19:20:06 -04:00
|
|
|
project(xrpVendordep)
|
|
|
|
|
|
|
|
|
|
include(SubDirList)
|
|
|
|
|
include(CompileWarnings)
|
|
|
|
|
include(AddTest)
|
|
|
|
|
|
|
|
|
|
file(GLOB_RECURSE xrpVendordep_native_src src/main/native/cpp/*.cpp)
|
|
|
|
|
add_library(xrpVendordep ${xrpVendordep_native_src})
|
|
|
|
|
set_target_properties(xrpVendordep PROPERTIES DEBUG_POSTFIX "d")
|
|
|
|
|
set_property(TARGET xrpVendordep PROPERTY FOLDER "libraries")
|
|
|
|
|
|
2026-04-26 00:15:39 -07:00
|
|
|
target_compile_features(xrpVendordep PUBLIC cxx_std_23)
|
2023-09-17 19:20:06 -04:00
|
|
|
wpilib_target_warnings(xrpVendordep)
|
|
|
|
|
target_link_libraries(xrpVendordep wpilibc)
|
|
|
|
|
|
2023-11-30 19:52:21 -05:00
|
|
|
target_include_directories(
|
|
|
|
|
xrpVendordep
|
|
|
|
|
PUBLIC
|
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/main/native/include>
|
|
|
|
|
$<INSTALL_INTERFACE:${include_dest}/xrpVendordep>
|
|
|
|
|
)
|
2023-09-17 19:20:06 -04:00
|
|
|
|
2024-07-11 18:01:05 -04:00
|
|
|
install(TARGETS xrpVendordep EXPORT xrpvendordep)
|
2024-04-10 22:04:22 -07:00
|
|
|
export(TARGETS xrpVendordep FILE xrpvendordep.cmake NAMESPACE xrpvendordep::)
|
2023-09-17 19:20:06 -04:00
|
|
|
install(DIRECTORY src/main/native/include/ DESTINATION "${include_dest}/xrpVendordep")
|
|
|
|
|
|
2024-01-04 03:47:47 -05:00
|
|
|
configure_file(xrpvendordep-config.cmake.in ${WPILIB_BINARY_DIR}/xrpvendordep-config.cmake)
|
|
|
|
|
install(FILES ${WPILIB_BINARY_DIR}/xrpvendordep-config.cmake DESTINATION share/xrpVendordep)
|
|
|
|
|
install(EXPORT xrpvendordep DESTINATION share/xrpVendordep)
|
2023-09-17 19:20:06 -04:00
|
|
|
|
2023-11-30 19:52:21 -05:00
|
|
|
if(WITH_TESTS)
|
|
|
|
|
wpilib_add_test(xrpVendordep src/test/native/cpp)
|
|
|
|
|
target_include_directories(xrpVendordep_test PRIVATE src/test/native/include)
|
2024-07-19 00:10:26 -04:00
|
|
|
target_link_libraries(xrpVendordep_test xrpVendordep googletest)
|
2023-11-30 19:52:21 -05:00
|
|
|
endif()
|