cmake_minimum_required(VERSION 3.13)


set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_COMPILER "/usr/bin/gcc")
set(CMAKE_CXX_COMPILER "/usr/bin/g++")
set(CMAKE_VERBOSE_MAKEFILE off)
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -pedantic")

project(integrator)

add_subdirectory(communication)
add_subdirectory(drivers)
add_subdirectory(management)
add_subdirectory(periferals)
add_subdirectory(systems)
add_subdirectory(algorithms)

add_executable(${PROJECT_NAME} interfacer.cpp)

target_include_directories( ${PROJECT_NAME}
	PRIVATE ${PROJECT_SOURCE_DIR}
)

target_link_libraries(${PROJECT_NAME}
	management::commandManager
	interface::i2c
	#driver::ads1050
	driver::bh1750
	driver::mcp4725
	driver::pca9555
	driver::pca9685
	driver::pf8574
	algorithm::bitgestion
	periferal::gpio
	system::call)
