From cb35d69dd53d43dbdfbb3bb6dfdcce8e5cf77ab9 Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Tue, 22 Sep 2020 13:08:46 +0200 Subject: [PATCH] cmake: Use cmake >= 3.5, add project setup. Cmake made major changes in the 2.x -> 3.0 switch, keeping the 2.x compatiblity just isn't worth it. Since serial anyway doesn't build on versions before xenial, use xenial's cmake at 3.5 as baseline. Gbp-Pq: Name 0001-cmake-Use-cmake-3.5-add-project-setup.patch --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4927020..24ea92e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,16 @@ -cmake_minimum_required(VERSION 2.8.3) +cmake_minimum_required(VERSION 3.5.0) project(serial) # Find catkin find_package(catkin REQUIRED) +# General setup +project(serial + VERSION 1.2.1 + DESCRIPTION "Cross-platform, Serial Port library written in C++" + HOMEPAGE_URL "http://wjwwood.io/serial/" +) + if(APPLE) find_library(IOKIT_LIBRARY IOKit) find_library(FOUNDATION_LIBRARY Foundation)