diff --git a/CMakeLists.txt b/CMakeLists.txt index e69de29..e8ca087 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.5) +set(CMAKE_C_FLAGS "-std=c99 -g -Wall") +set(CMAKE_INSTALL_PREFIX ".") + +include_directories(include) +project(utictactoe) +add_executable(${PROJECT_NAME} src/utictactoe.c src/model.c) diff --git a/Makefile b/Makefile deleted file mode 100644 index 0d9b405..0000000 --- a/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -## Makefile for uTicTacToe project -## -- -## - -# flags -CC=gcc -CFLAGS=-Wall -g -std=c99 -CPPFLAGS= - -all: build - -build: src/utictactoe.c - $(CC) $(CFQLGS) $< -o utictactoe - -.PHONY: clean help - -clean: ## Clean files - rm -f src\*.o utictactoe - -help: - @echo "Makefile pour UTicTacToe" - @echo "--" - @echo " all: tout compiler" - @echo "build: compiler utictactoe" - @echo "clean: nettoyer" diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e69de29..8722958 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -0,0 +1,7 @@ +cmake_minimum_required(VERSION 3.5) +set(CMAKE_C_FLAGS "-std=c99 -g -Wall") +set(CMAKE_INSTALL_PREFIX ".") +include_directories(../include) + +project(utictactoe) +add_executable(${PROJECT_NAME} utictactoe.c model.c) diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index cf12cec..0000000 --- a/src/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -# Flags -## Build Ultimate TicTacToe -## ------------------------ -## This Makefile Help you to build utictactoe -## -- - - -CC=gcc -CFLAGS=-Wall -g -std=c99 -CPPFLAGS=-I../include - -all: utictactoe - -utictactoe: utictactoe.c model.c## Compile utictactoe.c - -# Nettoyage -.PHONY: clean help -clean: ## Clean files - rm -f *.o utictactoe - -help: - @echo "Makefile pour UTicTacToe" - @echo "--" - @echo " all: tout compiler" - @echo "clean: nettoyer" diff --git a/src/utictactoe b/src/utictactoe deleted file mode 100755 index 972cf56..0000000 Binary files a/src/utictactoe and /dev/null differ