#
# Unit tests for the ngltools module.
# One test executable per module, each registered with ctest.
#
if (NOT BUILD_TESTING)
  return()
endif()

# --- ngltools: BitSet, telnet quoting, DTG, NGLHelpEvent, filesystem helpers
if (TARGET ngltools)
  ADD_EXECUTABLE(ngltools_unit_test ngltools_unit_test.cpp)
  TARGET_LINK_LIBRARIES(ngltools_unit_test
    ngltools
    Qt6::Core
    Qt6::Test
  )
  ADD_TEST(NAME ngltools_unit_test COMMAND $<TARGET_FILE:ngltools_unit_test>)
endif()
