mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
18 lines
526 B
CMake
18 lines
526 B
CMake
cmake_minimum_required(VERSION 2.8.3)
|
|
project(gz_encoder)
|
|
|
|
include (FindPkgConfig)
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_check_modules(GAZEBO gazebo)
|
|
endif()
|
|
|
|
find_package(gazebo REQUIRED)
|
|
find_library(GZ_MSGS libgz_msgs.so ../msgs/build)
|
|
|
|
file(GLOB_RECURSE SRC_FILES src/*.cpp)
|
|
include_directories(src ${Boost_INCLUDE_DIR} ${GAZEBO_INCLUDE_DIRS} ../msgs/src)
|
|
add_library(${PROJECT_NAME} SHARED ${SRC_FILES})
|
|
|
|
link_directories(${GAZEBO_LIBRARY_DIRS} ../msgs/build/)
|
|
target_link_libraries(${PROJECT_NAME} ${GZ_MSGS} ${GAZEBO_LIBRARIES})
|