cmake_minimum_required(VERSION 2.8.11)

project(wiringPiDev)


include (wiringPi)


include_directories(${CMAKE_CURRENT_SOURCE_DIR}
	${WIRINGPI_INCLUDE_PATH}
)



ADD_DEFINITIONS( "-D_GNU_SOURCE -Wformat=2 -Wall -Winline -I. -pipe -fPIC")

file(
	GLOB_RECURSE
	source_files
	ds1302.c
	maxdetect.c
	piNes.c
	gertboard.c
	piFace.c
	lcd128x64.c
	lcd.c
	piGlow.c
)

add_library(
        wiringPiDev
        STATIC
        ${source_files}
)

