project (Merge LANGUAGES CXX)

#=====================================
# Sources
#=====================================
set (merge_sources
  Factory.cpp
  Record.cpp
  Merge.cpp
  None.cpp
  Text.cpp
  TextCsv.cpp
  TextCsvKeys.cpp
  TextTsv.cpp
  TextTsvKeys.cpp
  TextColon.cpp
  TextColonKeys.cpp
  TextSemicolon.cpp
  TextSemicolonKeys.cpp
)

set (merge_qobject_headers
  Merge.hpp
)

qt6_wrap_cpp (merge_moc_sources ${merge_qobject_headers})

#=====================================
# Target
#=====================================
add_library (Merge STATIC
  ${merge_sources}
  ${merge_moc_sources}
)

target_compile_features (Merge
  PUBLIC cxx_std_20
)

target_include_directories (Merge
  PUBLIC ..
)

target_link_libraries (Merge
  Qt6::Core
)
