Skip to content

Commit

Permalink
cmake cleanup (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karsten1987 authored and clalancette committed Jan 6, 2020
1 parent 45e4963 commit b0096c0
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@ cmake_minimum_required(VERSION 3.5)
project(urg_node_msgs)

find_package(ament_cmake REQUIRED)
find_package(std_msgs REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(std_msgs REQUIRED)

set_directory_properties(PROPERTIES COMPILE_OPTIONS "-std=c++14")

# Dynamic reconfigure support
#generate_dynamic_reconfigure_options(cfg/URG.cfg)
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall -Wextra -Wpedantic)
endif()

rosidl_generate_interfaces(urg_node_msgs
"msg/Status.msg"
DEPENDENCIES builtin_interfaces std_msgs
DEPENDENCIES builtin_interfaces std_msgs
ADD_LINTER_TESTS
)

# Install mapping rules for the ros1_bridge
Expand All @@ -22,4 +26,5 @@ install(
DESTINATION share/${PROJECT_NAME}
)

ament_export_dependencies(rosidl_default_runtime)
ament_package()

0 comments on commit b0096c0

Please sign in to comment.