convert into CMake project
authorPetr Štetiar <ynezz@true.cz>
Thu, 17 Oct 2019 12:50:48 +0000 (14:50 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sat, 9 Nov 2019 13:23:45 +0000 (14:23 +0100)
Aligning it with other C based projects.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
CMakeLists.txt [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8c449f9
--- /dev/null
@@ -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_BINDIR})