-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
87 lines (80 loc) · 1.7 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
cmake_minimum_required(VERSION 2.6)
include(ReMake)
remake_project(
libepos
VERSION 0.3
RELEASE alpha
SUMMARY "Driver library for maxon EPOS/EPOS2 motor controllers."
AUTHOR "Ralf Kaestner"
CONTACT "ralf.kaestner@gmail.com"
HOME "http://github.com/kralf/libepos"
LICENSE "GNU Lesser General Public License (LGPL)"
PREFIX epos-
INSTALL /usr
)
remake_debian_get_alternatives(
libcan.so
OUTPUT LIBCAN_ALTERNATIVES
)
remake_component(
udev
CONFIGURATION_DESTINATION /etc/udev
)
remake_add_directories(
rules
COMPONENT udev
)
remake_doc(
man INSTALL share
html
)
remake_project_get(DOCUMENTATION_DESTINATION DESTINATION)
remake_pack_deb(
DEPENDS tulibs libcan
)
remake_pack_deb(
COMPONENT utils
DESCRIPTION "utilities"
DEPENDS libepos
EXTRA debian/utils/*
)
remake_pack_deb(
COMPONENT dev
DESCRIPTION "development headers"
DEPENDS libepos tulibs-dev libcan-dev
)
remake_pack_deb(
COMPONENT udev
DESCRIPTION "udev rules"
DEPENDS udev
EXTRA debian/rules/*
)
remake_pack_deb(
ARCH all
COMPONENT doc
DESCRIPTION "documentation"
)
remake_distribute_deb(
DISTRIBUTION lucid
SECTION libs
EXCLUDE /debian/ /vendor/
UPLOAD ppa:kralf/asl
DEPENDS tulibs-dev libcan-dev remake pkg-config doxygen
PASS CMAKE_BUILD_TYPE LIBEPOS_GIT_REVISION
)
remake_distribute_deb(
DISTRIBUTION precise
SECTION libs
EXCLUDE /debian/ /vendor/
UPLOAD ppa:kralf/asl
DEPENDS tulibs-dev libcan-dev remake pkg-config doxygen
PASS CMAKE_BUILD_TYPE LIBEPOS_GIT_REVISION
)
remake_distribute_deb(
DISTRIBUTION trusty
SECTION libs
EXCLUDE /debian/ /vendor/
UPLOAD ppa:kralf/asl
DEPENDS tulibs-dev libcan-dev remake pkg-config doxygen
PASS CMAKE_BUILD_TYPE LIBEPOS_GIT_REVISION
)