mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
15 lines
325 B
CMake
15 lines
325 B
CMake
cmake_minimum_required(VERSION 2.4.6)
|
|
|
|
set(ROS_ROOT $ENV{ROS_ROOT})
|
|
|
|
if(DEFINED ROS_ROOT)
|
|
# Build with ROS
|
|
include(serial_ros.cmake)
|
|
message("Building with ROS")
|
|
build_serial()
|
|
else(DEFINED ROS_ROOT)
|
|
# Build normally
|
|
include(serial.cmake)
|
|
message("Building stand alone")
|
|
build_serial()
|
|
endif(DEFINED ROS_ROOT) |