Add myRobot C++ version to cmake build (#1907)

This commit is contained in:
Peter Johnson
2019-09-29 20:36:28 -07:00
committed by GitHub
parent 366091fa87
commit 885744d7e1
2 changed files with 9 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ if (NOT WITHOUT_CSCORE)
add_subdirectory(hal)
add_subdirectory(wpilibj)
add_subdirectory(wpilibc)
add_subdirectory(myRobot)
endif()
endif()

8
myRobot/CMakeLists.txt Normal file
View File

@@ -0,0 +1,8 @@
project(myRobot)
include(CompileWarnings)
file(GLOB myRobotCpp_src src/main/native/cpp/*.cpp)
add_executable(myRobotCpp ${myRobotCpp_src})
target_link_libraries(myRobotCpp wpilibc)