Adding the C code.

I'm keeping the Java file for now as reference.
This commit is contained in:
Nicolás A. Ortega
2016-07-04 12:43:19 +02:00
parent f7a0384ff3
commit 3675ee066f
3 changed files with 35 additions and 8 deletions

13
CMakeLists.txt Normal file
View File

@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 2.6)
project(MMMCalc)
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic-errors")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -O0")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -O3")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS} -g -O3")
set(CMAKE_C_FLAGS_MIN_SIZEREL "${CMAKE_C_FLAGS} -Os")
set(SRCS
src/Main.c)
add_executable(mmmcalc ${SRCS})