summaryrefslogtreecommitdiff
path: root/accel-cmd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2013-01-28 19:49:00 +0100
committerKozlov Dmitry <xeb@mail.ru>2013-02-04 19:31:58 +0400
commit38789e2c51ecf186d67bff258a185276dfb3b6ec (patch)
tree7df38f47ed33ba2e2fe434ad860b95085c6aa4c8 /accel-cmd
parente7ad63d1abcffd7afb7d52b0d3164eefda786b47 (diff)
downloadaccel-ppp-38789e2c51ecf186d67bff258a185276dfb3b6ec.tar.gz
accel-ppp-38789e2c51ecf186d67bff258a185276dfb3b6ec.zip
Integrate accel-cmd with accel-ppp's build process
Create a CMakeLists.txt file for accel-cmd so that it gets compiled and installed like accel-pppd. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-cmd')
-rw-r--r--accel-cmd/CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/accel-cmd/CMakeLists.txt b/accel-cmd/CMakeLists.txt
new file mode 100644
index 0000000..4455c8d
--- /dev/null
+++ b/accel-cmd/CMakeLists.txt
@@ -0,0 +1,14 @@
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -D_GNU_SOURCE")
+
+ADD_DEFINITIONS(-DACCEL_PPP_VERSION="${ACCEL_PPP_VERSION}")
+
+ADD_EXECUTABLE(accel-cmd
+ accel_cmd.c
+)
+
+INSTALL(TARGETS accel-cmd
+ RUNTIME DESTINATION bin
+)
+INSTALL(FILES accel-cmd.1
+ DESTINATION share/man/man1
+)