set (LIBRARY_PL
  apply.yap
  apply_macros.yap
  arg.yap
  assoc.yap
  atts.yap
  avl.yap
  bhash.yap
  charsio.yap
  clauses.yap
  coinduction.yap
  completer.yap
  dbqueues.yap
  dbusage.yap
  dgraphs.yap
  exo_interval.yap
  expand_macros.yap
  gensym.yap
  hacks.yap
  heaps.yap
  lambda.pl
  lineutils.yap
  listing.yap
  lists.yap
  log2md.yap
  nb.yap
  ordsets.yap
  mapargs.yap
  maplist.yap
  maputils.yap
  matlab.yap
  matrix.yap
  prandom.yap
  queues.yap
  random.yap
  range.yap
  rbtrees.yap
  regexp.yap
  readutil.yap
  rltree.yap
  sockets.yap
  splay.yap
  stringutils.yap
  system.yap
  terms.yap
  tries.yap
  itries.yap
  timeout.yap
  trees.yap
  ugraphs.yap
  undgraphs.yap
  varnumbers.yap
  wdgraphs.yap
  wgraphs.yap
  wundgraphs.yap
  lam_mpi.yap
   ytest.yap
   c_alarms.yap
  flags.yap
  block_diagram.yap
  )


add_subdirectory(dialect)
# add_subdirectory(clp)
MY_add_subdirectory(matlab)
add_subdirectory(matrix)
add_subdirectory(random)
add_subdirectory(regex)
add_subdirectory(rltree)
add_subdirectory(system)
add_subdirectory(tries)
MY_add_subdirectory(ytest)

add_to_dir(LIBRARY_PL ${YAP_INSTALL_DATADIR})

install(FILES ${LIBRARY_PL} DESTINATION ${YAP_INSTALL_DATADIR})

include_directories("dialect/swi")