project(tinylog)

cmake_minimum_required(VERSION 2.6)
set(CMAKE_C_FLAGS "-fPIC -std=gnu99")

add_library(tinylog STATIC src/log.c)

install(TARGETS tinylog
	DESTINATION lib)
install(FILES src/log.h
	DESTINATION include)

project(tinylog)

cmake_minimum_required(VERSION 2.6)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -std=gnu99")

add_library(tinylog STATIC src/log.c)

install(TARGETS tinylog
	DESTINATION lib)
install(FILES src/log.h
	DESTINATION include)

Tweak CMAKE_C_FLAGS to accept passed in flags
Tweak CMAKE_C_FLAGS to accept passed in flags
