From: Petr Štetiar Date: Thu, 17 Oct 2019 12:50:48 +0000 (+0200) Subject: convert into CMake project X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=5df0cd6e15235609713b7c1d263058e751d44a20;p=project%2Ffwtool.git convert into CMake project Aligning it with other C based projects. Signed-off-by: Petr Štetiar --- diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..8c449f9 --- /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_BINDIR})