list(APPEND CPPFLAGS -Wno-error=incompatible-pointer-types)
add_subdirectory(automotive-basicmath)
add_subdirectory(automotive-bitcount)
add_subdirectory(automotive-susan)
add_subdirectory(consumer-jpeg)
add_subdirectory(consumer-typeset)
add_subdirectory(network-dijkstra)
add_subdirectory(network-patricia)
add_subdirectory(security-rijndael)
add_subdirectory(security-sha)
add_subdirectory(telecomm-CRC32)

add_subdirectory(telecomm-gsm)
if(NOT "${ARCH}" STREQUAL "XCore")
  add_subdirectory(consumer-lame)
endif()
if(NOT TEST_SUITE_BENCHMARKING_ONLY)
  add_subdirectory(office-stringsearch)
  add_subdirectory(security-blowfish)
  add_subdirectory(telecomm-adpcm)

  # The GNU-specific 'sgtty.h' header file is included from term.c file in
  # office-ispell test. Only enable the test if the header is present on the
  # target platform.
  include(CheckIncludeFiles)
  check_include_files("sgtty.h" HAVE_SGTTY_INCLUDE LANGUAGE C)

  if((NOT "${ARCH}" STREQUAL "XCore") AND (NOT "${ARCH}" STREQUAL "ARM")
     AND HAVE_SGTTY_INCLUDE)
    add_subdirectory(office-ispell)
  endif()
endif()
