# Distributed under the MIT License.
# See LICENSE.txt for details.

set(LIBRARY Options)

add_spectre_library(${LIBRARY})

spectre_target_sources(
  ${LIBRARY}
  PRIVATE
  Comparator.cpp
  Context.cpp
  ParseOptions.cpp
  )

spectre_target_headers(
  ${LIBRARY}
  INCLUDE_DIRECTORY ${CMAKE_SOURCE_DIR}/src
  HEADERS
  Auto.hpp
  Comparator.hpp
  Context.hpp
  Factory.hpp
  FactoryHelpers.hpp
  Options.hpp
  OptionsDetails.hpp
  ParseError.hpp
  ParseOptions.hpp
  StdComplex.hpp
  String.hpp
  Tags.hpp
  )

target_link_libraries(
  ${LIBRARY}
  PUBLIC
  ErrorHandling
  Printf
  Utilities
  yaml-cpp::yaml-cpp
  PRIVATE
  Informer
  )

add_subdirectory(Protocols)
