cmake_minimum_required(VERSION 2.8)

project(gpio)

include (wiringPi)
include (wiringPiDev)

include_directories(${WIRINGPI_INCLUDE_PATH}
					${WIRINGPIDEV_INCLUDE_PATH}
)

add_executable(gpio gpio.c readall.c pins.c)

add_dependencies (gpio wiringPi wiringPiDev)

target_link_libraries(gpio
	LINK_PUBLIC
	wiringPi
	wiringPiDev
	pthread
	m
	)
