mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
To publish the simulation zip, run ./gradlew publish -PmakeSim Targeting Ubuntu 14.04 and 15.10 for now, with 14.04 being the currently best supported. Two scripts have been drafted for installing, for 14.04 and 15.10 It currently publishes to ~/releases/maven/development/simulation There is a known bug that gz_msgs for 15.10 must be built using protobuf 2.6, which is not the default on 14.04. Change-Id: I6cccd601671553d30fd05bbbc79c2b7dc1efbf1d
38 lines
853 B
CMake
38 lines
853 B
CMake
cmake_minimum_required(VERSION 2.8.3)
|
|
project(frc_gazebo_plugins)
|
|
|
|
set (PLUGINS
|
|
clock
|
|
dc_motor
|
|
encoder
|
|
gyro
|
|
limit_switch
|
|
pneumatic_piston
|
|
potentiometer
|
|
rangefinder
|
|
servo)
|
|
|
|
link_directories(${GAZEBO_LIBRARY_DIRS})
|
|
|
|
foreach(PLUGIN ${PLUGINS})
|
|
|
|
file(GLOB_RECURSE SRC_FILES ${PLUGIN}/src/*.cpp)
|
|
|
|
include_directories(src ${Boost_INCLUDE_DIR} ${GZ_MSGS_INCLUDE_DIR} ${PROTOBUF_INCLUDE_DIRS} ${GAZEBO_INCLUDE_DIRS})
|
|
|
|
if (WIN32)
|
|
add_library(${PLUGIN} ${SRC_FILES})
|
|
else()
|
|
add_library(${PLUGIN} SHARED ${SRC_FILES})
|
|
endif()
|
|
|
|
target_link_libraries(${PLUGIN} gz_msgs ${GAZEBO_LIBRARIES} ${Boost_LIBRARIES})
|
|
set_target_properties(${PLUGIN}
|
|
PROPERTIES
|
|
LIBRARY_OUTPUT_DIRECTORY ${SIMULATION_INSTALL_DIR}/plugins)
|
|
|
|
endforeach()
|
|
|
|
# create a dummy target the depends on all the plugins
|
|
add_custom_target(${PROJECT_NAME} DEPENDS ${PLUGINS})
|