
cmake_minimum_required(VERSION 2.6)

project(ecriture)


file(
GLOB
source_files_ecriture
ecriture.c
)

file(
GLOB
source_files_lecture
lecture.c
)

SET(CMAKE_BUILD_TYPE Debug)
SET(CMAKE_C_FLAGS "-Wall -Wextra -Wno-unused-parameter -D_REENTRANT -fPIC" )


add_executable(	
   ecriture
   ${source_files_ecriture}
   )	
add_executable(	
   lecture
   ${source_files_lecture}
   )	

target_link_libraries(ecriture "-lm")
target_link_libraries(lecture "-lm")


