#========================================================================
# -*- mode: cmake -*-
#
# This contains project derived functions/macros
#
#------------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED(VERSION 3.12)

set( MODULE_SOURCES
  ArchiveX.cmake

  cm_aux_variable_normalize.cmake
  cm_string_special_characters.cmake

  cx_check_func_swap.cmake
  cx_check_func_swap_all.cmake
  cx_check_header_for_subst.cmake
  cx_check_header_for_subst_cxx.cmake
  cx_check_header_zstd.cmake
  cx_check_lib_framel.cmake
  cx_check_lib_md5sum.cmake
  cx_check_lib_socket_nsl.cmake
  cx_check_lib_thread.cmake
  cx_check_lib_umem.cmake
  cx_check_lib_z.cmake
  cx_check_lib_zstd.cmake
  cx_check_pthread_read_write_lock.cmake
  cx_check_sizes.cmake
  cx_cmake_language.cmake
  cx_cmake_list_join.cmake
  cx_create_executable.cmake
  cx_cpack.cmake
  cx_ctest_add_python_test.cmake
  cx_c_append_flags.cmake
  cx_c_warnings_as_errors.cmake
  cx_cxx_append_flags.cmake
  cx_cxx_constexpr.cmake
  cx_cxx_exceptions_rethrow.cmake
  cx_cxx_template_aliases.cmake
  cx_cxx_template_aliases_via_using.cmake
  cx_cxx_template_as_template_parameter.cmake
  cx_cxx_template_move.cmake
  cx_cxx_unique_ptr.cmake
  cx_cxx_warnings_as_errors.cmake
  cx_find_pkg.cmake
  cx_find_pkg_zstd.cmake
  cx_install_header.cmake
  cx_iterate.cmake
  cx_ldas_pkg_check.cmake
  cx_ldas_prog_cxx.cmake
  cx_libtool_version_calculation.cmake
  cx_link_headers.cmake
  cx_list_prefix.cmake
  cx_mktemp.cmake
  cx_msg_debug.cmake
  cx_msg_debug_variable.cmake
  cx_packaging.cmake
  cx_packaging_deb.cmake
  cx_packaging_macports.cmake
  cx_packaging_rpm.cmake
  cx_prog_changed_files.cmake
  cx_prog_cxx.cmake
  cx_prog_doxygen.cmake
  cx_python_module.cmake
  cx_reconfigure.cmake
  cx_scheme_sanitizer.cmake
  cx_scheme_sanitizer_asan.cmake
  cx_scheme_sanitizer_lsan.cmake
  cx_scheme_sanitizer_msan.cmake
  cx_scheme_sanitizer_tsan.cmake
  cx_scheme_sanitizer_set_environment.cmake
  cx_scheme_sanitizer_ubsan.cmake
  cx_set_variable_default.cmake
  cx_struct_procfs_psinfo.cmake
  cx_struct_procfs_stat.cmake
  cx_swig_python_module.cmake
  cx_sys_64bit_os.cmake
  cx_system_daemon.cmake
  cx_target_abi_check.cmake
  cx_target_changed_files_actions.cmake
  cx_target_changed_files_diff.cmake
  cx_target_changed_files_list.cmake
  cx_target_changed_files_pull.cmake
  cx_target_changed_files_push.cmake
  cx_target_executable.cmake
  cx_target_gtest.cmake
  cx_target_library.cmake
  cx_target_manual.cmake
  cx_target_pkgconfig.cmake
  cx_target_test.cmake
  cx_test_python.cmake
  cx_variable_strip_nl.cmake
  )

ci_create_macro_file(
  TAG AutotoolsArchiveX
  MODULES ${MODULE_SOURCES}
  MODULE_DIR "Autotools/ArchiveX"
  INSTALL_DIR "${IGWNCMAKE_INSTALL_DATADIR}/cmake/Modules"
  NO_TEST_MODULES
    cx_check_func_swap_all.cmake
    cx_check_lib_socket_nsl.cmake
    cx_check_lib_thread.cmake
    cx_sys_64bit_os.cmake
    cx_target_library.cmake
  )
