From aae3d45a85cb4f4a77f2bd129d43b21307966fb0 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Mon, 28 Jan 2013 19:49:00 +0100 Subject: 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 --- CMakeLists.txt | 1 + accel-cmd/CMakeLists.txt | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 accel-cmd/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a6d831..3efcd2b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ if (NOT BUILD_DRIVER_ONLY) add_subdirectory(accel-pppd) add_subdirectory(crypto) + add_subdirectory(accel-cmd) endif (NOT BUILD_DRIVER_ONLY) if (BUILD_DRIVER OR BUILD_DRIVER_ONLY) 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 +) -- cgit v1.2.3