# declare executables
DCMTK_ADD_EXECUTABLE(ofstd_tests
  tests.cc
  tatof.cc
  terror.cc
  tmap.cc
  tvec.cc
  tfilsys.cc
  tftoa.cc
  tthread.cc
  tbase64.cc
  tstring.cc
  tstrutl.cc
  tlist.cc
  tstack.cc
  tofdatim.cc
  tofstd.cc
  tmarkup.cc
  tchrenc.cc
  txml.cc
  tuuid.cc
  toffile.cc
  tmem.cc
  toption.cc
  ttuple.cc
  tlimits.cc
  tvariant.cc
  tipc.cc
)

# make sure executables are linked to the corresponding libraries
DCMTK_TARGET_LINK_MODULES(ofstd_tests ofstd)

# This macro parses tests.cc and registers all tests
DCMTK_ADD_TESTS(ofstd)

# Cleanup testfile.$$$ generated by the ofstd_OFFile exhaustive testcase.
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES
  "${CMAKE_CURRENT_BINARY_DIR}/testfile.$$$"
)
