summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--accel-cmd/CMakeLists.txt14
2 files changed, 15 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7a6d8312..3efcd2b8 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 00000000..4455c8df
--- /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
+)