[OpenWrt-Devel] [PATCH fwtool 2/8] convert into CMake project
Petr Štetiar
ynezz at true.cz
Wed Oct 23 06:53:33 EDT 2019
Aligning it with other C based projects.
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
CMakeLists.txt | 8 ++++++++
1 file changed, 8 insertions(+)
create mode 100644 CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 000000000000..a73ce69f74c0
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,8 @@
+CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
+
+PROJECT(fwtool C)
+INCLUDE(GNUInstallDirs)
+
+ADD_DEFINITIONS(-Wall -Werror -Wextra -Wno-unused-parameter)
+ADD_EXECUTABLE(fwtool fwtool.c)
+INSTALL(TARGETS fwtool RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR})
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list