[build] Add exports to CMake subprojects (#6505)

This allows consuming allwpilib via FetchContent.
This commit is contained in:
Tyler Veness
2024-04-10 22:04:22 -07:00
committed by GitHub
parent 2def62a1ef
commit 74f648689e
22 changed files with 35 additions and 0 deletions

View File

@@ -46,4 +46,5 @@ wpilib_target_warnings(wpiguidev)
target_link_libraries(wpiguidev wpigui)
install(TARGETS wpigui EXPORT wpigui)
export(TARGETS wpigui FILE wpigui.cmake NAMESPACE wpigui::)
install(DIRECTORY src/main/native/include/ DESTINATION "${include_dest}/wpigui")