psoc6_load_library(
  NAME csdidac
  VERSION 2.10.0
)

set(CSDIDAC_SOURCES
  ${CSDIDAC_DIR}/cy_csdidac.h
  ${CSDIDAC_DIR}/cy_csdidac.c
)
set(CSDIDAC_INCLUDE_DIRS
  ${CSDIDAC_DIR}
)
set(CSDIDAC_LINK_LIBRARIES
  mtb-pdl-cat1
)

add_library(csdidac STATIC EXCLUDE_FROM_ALL ${CSDIDAC_SOURCES})
target_include_directories(csdidac PUBLIC ${CSDIDAC_INCLUDE_DIRS})
target_link_libraries(csdidac PUBLIC ${CSDIDAC_LINK_LIBRARIES})
