mmmcalc/CMakeLists.txt

18 lines
529 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.6)
project(MMMCalc)
if(CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
2016-07-07 18:45:57 +00:00
set(CMAKE_C_FLAGS "-std=c11 -Wall -Wextra -Werror -Wpedantic -Wfatal-errors -Wmissing-declarations -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
2016-07-08 18:01:33 +00:00
src/main.c)
add_executable(mmmcalc ${SRCS})