# Molecular Orbital PACkage (MOPAC)
# Copyright (C) 2021, Virginia Polytechnic Institute and State University
#
# MOPAC is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# MOPAC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#===============================================
# Create a list of source files (src_list) with the .F90 extension
set(src_list
    mbonds fillij check hbonds buildf add_more_interactions
    isitsc setupk chrge_for_MOZYME reorth set_up_MOZYME_arrays
    eimp vecprt_for_MOZYME outer2 compct cnvgz diagg
    kab_for_MOZYME bonds_for_MOZYME prtlmo density_for_MOZYME
    addhb dipole_for_MOZYME local_for_MOZYME fock2z local2
    helecz scfcri MOZYME_C epseta iter_for_MOZYME
    denrot_for_MOZYME fock1_for_MOZYME jab_for_MOZYME hybrid
    hcore_for_MOZYME tidy makvec selmos diagg2 mlmo
    convert_storage outer1 diagg1 adjvec MOZYME_eigs
   )
#-----------------------------------------------
# Add a list of source files to the target
foreach(idx IN LISTS src_list)
        target_sources(mopac-core PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/${idx}.F90)
endforeach()
#===============================================
