cmake_minimum_required(VERSION 3.8)
project(console_bridge_vendor)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)

include(ExternalProject)
ExternalProject_Add(
  console_bridge_vendor
  GIT_REPOSITORY https://github.com/ros/console_bridge.git
  GIT_TAG 81ec67f6daf3cd19ef506e00f02efb1645597b9c

  CMAKE_ARGS
    -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
    -DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
    -DCMAKE_POSITION_INDEPENDENT_CODE=ON
    -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
    -DBUILD_TESTING=OFF
)

