cmake_minimum_required(VERSION 3.1.0)
set(PROJECT_NAME parcel)
project(${PROJECT_NAME})

if (NOT CMAKE_BUILD_TYPE)
    message(STATUS "No build type selected, default to Release")
    set(CMAKE_BUILD_TYPE CACHE Release FORCE)
endif()

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")

add_library(${PROJECT_NAME} parcel.c)

set_property(TARGET ${PROJECT_NAME} 
			PROPERTY
			POSITION_INDEPENDENT_CODE TRUE
			C_STANDARD 99
			C_STANDARD_REQUIRED TRUE
)
# minimum required version for C_STANDARD
cmake_minimum_required(VERSION 3.3)
set(PROJECT_NAME parcel)
project(${PROJECT_NAME})

if (NOT CMAKE_BUILD_TYPE)
    message(STATUS "No build type selected, default to Release")
    set(CMAKE_BUILD_TYPE CACHE Release FORCE)
endif()

set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -fprofile-arcs -ftest-coverage")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3")

add_library(${PROJECT_NAME} parcel.c)

set_property(TARGET ${PROJECT_NAME} 
			PROPERTY
			POSITION_INDEPENDENT_CODE TRUE
			C_STANDARD 99
			C_STANDARD_REQUIRED TRUE
)
Update minium required CMake version
Update minium required CMake version
