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