diff mbox series

[OpenWrt-Devel,fwtool,2/8] convert into CMake project

Message ID 20191023105339.16326-3-ynezz@true.cz
State Accepted
Delegated to: Petr Štetiar
Headers show
Series fwtool improvements | expand

Commit Message

Petr Štetiar Oct. 23, 2019, 10:53 a.m. UTC
Aligning it with other C based projects.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
---
 CMakeLists.txt | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 CMakeLists.txt
diff mbox series

Patch

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})