mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +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
29 lines
698 B
CMake
29 lines
698 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
cmake_policy(SET CMP0015 NEW)
|
|
project(wpilibcSim)
|
|
|
|
get_filename_component(HAL_API_INCLUDES ../../hal/include REALPATH)
|
|
|
|
file(GLOB_RECURSE COM_SRC_FILES ../shared/src/*.cpp
|
|
src/*.cpp)
|
|
|
|
set (INCLUDE_FOLDERS include
|
|
../shared/include
|
|
../../hal/include
|
|
${NTCORE_INCLUDE_DIR}
|
|
${GZ_MSGS_INCLUDE_DIR}
|
|
${Boost_INCLUDE_DIR}
|
|
${GAZEBO_INCLUDE_DIRS})
|
|
|
|
include_directories(${INCLUDE_FOLDERS})
|
|
|
|
link_directories(${NTCORE_LIBDIR})
|
|
|
|
add_library(${PROJECT_NAME} SHARED ${SRC_FILES} ${COM_SRC_FILES})
|
|
|
|
target_link_libraries(${PROJECT_NAME} gz_msgs ntcore)
|
|
|
|
set_target_properties(${PROJECT_NAME}
|
|
PROPERTIES
|
|
LIBRARY_OUTPUT_DIRECTORY ${SIMULATION_INSTALL_DIR}/lib)
|