CMakeLists

CMakeLists Examples

Minimal Example

cmake_minimum_required(VERSION 3.0.2)
project(mav_exploration)

find_package(catkin REQUIRED COMPONENTS
  roscpp
  rospy
  std_msgs
  mavros_msgs
)

catkin_package()  # from catkin (not CMake)

include_directories(
  include
  ${catkin_INCLUDE_DIRS}
)

add_executable(offboard_node src/offboard_node.cpp)
target_link_libraries(offboard_node  ${catkin_LIBRARIES})

Testing

Default Template

Curses-based User Interface for CMake (ccmake)

This package provides the CMake curses interface. Project configuration settings may be specified interactively through this GUI. Brief instructions are provided at the bottom of the terminal when the program is running. The main executable file for this GUI is "ccmake".

Last updated

Was this helpful?