mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 11:44:53 +08:00
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
This commit is contained in:
parent
cbcca7c837
commit
cb35d69dd5
@ -1,9 +1,16 @@
|
|||||||
cmake_minimum_required(VERSION 2.8.3)
|
cmake_minimum_required(VERSION 3.5.0)
|
||||||
project(serial)
|
project(serial)
|
||||||
|
|
||||||
# Find catkin
|
# Find catkin
|
||||||
find_package(catkin REQUIRED)
|
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)
|
if(APPLE)
|
||||||
find_library(IOKIT_LIBRARY IOKit)
|
find_library(IOKIT_LIBRARY IOKit)
|
||||||
find_library(FOUNDATION_LIBRARY Foundation)
|
find_library(FOUNDATION_LIBRARY Foundation)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user