psoc4_load_library(
  NAME lin
  VERSION 1.0.0
)

set(LIN_SOURCES
  ${LIN_DIR}/mtb_lin.h
  ${LIN_DIR}/mtb_lin.c
  ${LIN_DIR}/mtb_lin_ifc.h
  ${LIN_DIR}/mtb_lin_ifc.c
  ${LIN_DIR}/mtb_lin_ld.h
  ${LIN_DIR}/mtb_lin_ld.c
  ${LIN_DIR}/mtb_lin_ncs.h
  ${LIN_DIR}/mtb_lin_ncs.c
  ${LIN_DIR}/mtb_lin_sig.h
  ${LIN_DIR}/mtb_lin_sig.c
  ${LIN_DIR}/mtb_lin_types.h
)
set(LIN_INCLUDE_DIRS
  ${LIN_DIR}
)
set(LIN_LINK_LIBRARIES
  mtb-hal-cat2
)

add_library(lin STATIC EXCLUDE_FROM_ALL ${LIN_SOURCES})
target_include_directories(lin PUBLIC ${LIN_INCLUDE_DIRS})
target_link_libraries(lin PUBLIC ${LIN_LINK_LIBRARIES})
