#
set(top_src_dir "${PROJECT_SOURCE_DIR}/Src")

siesta_add_executable(SIESTA_pvtsp_exe
  NAMESPACE_TARGET pvtsp_exe

   ${top_src_dir}/precision.F
   ${top_src_dir}/parallel.F
   ${top_src_dir}/alloc.F90
   ${top_src_dir}/m_io.f
   ${top_src_dir}/reclat.f
   ${top_src_dir}/io.f
   ${top_src_dir}/memory_log.F90
   ${top_src_dir}/memory.F
   ${top_src_dir}/m_uuid.f90
   ${top_src_dir}/object_debug.F90
   ${top_src_dir}/class_Sparsity.F90
   ${top_src_dir}/class_OrbitalDistribution.F90
   ${top_src_dir}/class_Data1D.F90
   ${top_src_dir}/class_Data2D.F90
   ${top_src_dir}/class_SpData1D.F90
   ${top_src_dir}/class_SpData2D.F90
   ${top_src_dir}/intrinsic_missing.F90
   ${top_src_dir}/geom_helper.f90
   ${top_src_dir}/io_sparse.F90
   ${top_src_dir}/m_os.F90
   ${top_src_dir}/create_Sparsity_SC.F90
   ${top_src_dir}/m_sparse.F90
   ${top_src_dir}/m_ts_io.F90
   ${top_src_dir}/m_region.F90
   ${top_src_dir}/m_pivot_methods.F90
   ${top_src_dir}/m_pivot.F90
   ${top_src_dir}/m_interpolate.F90
   ${top_src_dir}/m_sparsity_handling.F90

   pvtsp.F90
   local_timer.f90
)
set_target_properties(SIESTA_pvtsp_exe
  PROPERTIES
  EXPORT_NAME pvtsp
  OUTPUT_NAME pvtsp
)

target_link_libraries(SIESTA_pvtsp_exe
  PRIVATE
    ${PROJECT_NAME}-libsys
  )


if( SIESTA_INSTALL )
  install(
    TARGETS SIESTA_pvtsp_exe
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    )
endif()

