set(headers_list "")
# List of headers
list(APPEND headers_list cholesky.h qr.h 3index.h schwarz.h pstensor.h fitter.h dftensor.h denominator.h )

# If you want to remove some headers specify them explictly here
if(DEVELOPMENT_CODE)
   list(REMOVE_ITEM headers_list "")
else()
   list(REMOVE_ITEM headers_list "")
endif()
# Sort alphabetically
list(SORT headers_list)

set(sources_list "")
# List of sources
list(APPEND sources_list dealias.cc dftensor.cc pstensor.cc denominator.cc pseudotrial.cc fitter.cc schwarz.cc fittingmetric.cc qr.cc cholesky.cc )

# If you want to remove some sources specify them explictly here
if(DEVELOPMENT_CODE)
   list(REMOVE_ITEM sources_list "")
else()
   list(REMOVE_ITEM sources_list "")
endif()


# Build static library
add_library(3index STATIC ${sources_list})
# Specify dependencies for the library (if any)
add_dependencies(3index mints)
set_property(GLOBAL APPEND PROPERTY LIBLIST 3index)
if(BUILD_CUSTOM_BOOST)
   add_dependencies(3index custom_boost)
endif()

# Sets install directory for all the headers in the list
install_list_FILES("${headers_list}" include/psi4/lib/lib3index)
