From b0f8526c71acbde54d6c5b85b5996fd1e41704a1 Mon Sep 17 00:00:00 2001 From: Hugo Freire Date: Sat, 27 Aug 2016 16:53:13 +0200 Subject: [PATCH] Added cmake support. --- CMakeLists.txt | 9 +++++++++ Makefile | 14 -------------- 2 files changed, 9 insertions(+), 14 deletions(-) create mode 100644 CMakeLists.txt delete mode 100644 Makefile diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..26eff9f --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.4) +project(dhcprl) + +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + +set(SOURCE_FILES + src/dhcprl.c) + +add_executable(dhcprl ${SOURCE_FILES}) \ No newline at end of file diff --git a/Makefile b/Makefile deleted file mode 100644 index 157497e..0000000 --- a/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -CFLAGS= -Wall -g -LDFLAGS=-g - -all: build/dhcprl - -clean: - rm -r build - -build/dhcprl: build/dhcprl.o - ${CC} ${LDFLAGS} -o $@ build/dhcprl.o - -build/dhcprl.o: src/dhcprl.c - mkdir -p build - ${CC} ${CFLAGS} -c -o $@ src/dhcprl.c