Commit 8c4c69ea authored by Johnson, Seth R.'s avatar Johnson, Seth R.
Browse files

Move source out of main directory

parent ba7a6dd0
Loading
Loading
Loading
Loading
+3 −346
Original line number Diff line number Diff line
@@ -14,347 +14,10 @@ if(NOT pugixml_FOUND)
endif()

#---------------------------------------------------------------------------#
# LIBRARY
# LIBRARY AND HEADERS
#---------------------------------------------------------------------------#

add_library(gnds
  ArrayContainer.cpp
  Container.cpp
  TableContainer.cpp
  ValuesContainer.cpp
  gnd/abstract_functional_Node.cpp
  gnd/abstract_label_Node.cpp
  gnd/abstract_physical_Quantity_Node.cpp
  gnd/abstract_text_Node.cpp
  gnd/appData__E_N_D_Fconversion_Flags.cpp
  gnd/appData_application_Data.cpp
  gnd/appData_conversion.cpp
  gnd/appData_institution.cpp
  gnd/atomic_coherent_Photon_Scattering.cpp
  gnd/atomic_form_Factor.cpp
  gnd/atomic_imaginary_Anomalous_Factor.cpp
  gnd/atomic_incoherent_Photon_Scattering.cpp
  gnd/atomic_real_Anomalous_Factor.cpp
  gnd/atomic_scattering_Factor.cpp
  gnd/common__Q.cpp
  gnd/common_energy.cpp
  gnd/common_mass.cpp
  gnd/common_probability.cpp
  gnd/common_product.cpp
  gnd/common_products.cpp
  gnd/common_temperature.cpp
  gnd/covariance_average_Parameter_Covariance.cpp
  gnd/covariance_column_Data.cpp
  gnd/covariance_covariance_Matrix.cpp
  gnd/covariance_covariance_Sections.cpp
  gnd/covariance_covariance_Suite.cpp
  gnd/covariance_mixed.cpp
  gnd/covariance_parameter_Covariance.cpp
  gnd/covariance_parameter_Covariance_Matrix.cpp
  gnd/covariance_parameter_Covariances.cpp
  gnd/covariance_parameter_Link.cpp
  gnd/covariance_parameters.cpp
  gnd/covariance_row_Data.cpp
  gnd/covariance_section.cpp
  gnd/covariance_short_Range_Self_Scaling_Variance.cpp
  gnd/covariance_sum.cpp
  gnd/covariance_summand.cpp
  gnd/cpTransport__Coulomb_Plus_Nuclear_Elastic.cpp
  gnd/cpTransport__Rutherford_Scattering.cpp
  gnd/cpTransport_imaginary_Interference_Term.cpp
  gnd/cpTransport_nuclear_Amplitude_Expansion.cpp
  gnd/cpTransport_nuclear_Plus_Interference.cpp
  gnd/cpTransport_nuclear_Term.cpp
  gnd/cpTransport_real_Interference_Term.cpp
  gnd/documentation_documentation.cpp
  gnd/documentation_documentations.cpp
  gnd/fissionTransport__E_F_H.cpp
  gnd/fissionTransport__E_F_L.cpp
  gnd/fissionTransport__Madland_Nix.cpp
  gnd/fissionTransport__T__M.cpp
  gnd/fissionTransport__Watt.cpp
  gnd/fissionTransport_b.cpp
  gnd/fissionTransport_delayed_Beta_Energy.cpp
  gnd/fissionTransport_delayed_Gamma_Energy.cpp
  gnd/fissionTransport_delayed_Neutron_K_E.cpp
  gnd/fissionTransport_fission_Component.cpp
  gnd/fissionTransport_fission_Components.cpp
  gnd/fissionTransport_fission_Energy_Released.cpp
  gnd/fissionTransport_neutrino_Energy.cpp
  gnd/fissionTransport_non_Neutrino_Energy.cpp
  gnd/fissionTransport_prompt_Gamma_Energy.cpp
  gnd/fissionTransport_prompt_Neutron_K_E.cpp
  gnd/fissionTransport_prompt_Product_K_E.cpp
  gnd/fissionTransport_simple_Maxwellian_Fission.cpp
  gnd/fissionTransport_total_Energy.cpp
  gnd/fpy_duration.cpp
  gnd/fpy_durations.cpp
  gnd/fpy_energy.cpp
  gnd/fpy_fission_Fragment_Data.cpp
  gnd/fpy_incident_Energies.cpp
  gnd/fpy_incident_Energy.cpp
  gnd/fpy_nuclides.cpp
  gnd/fpy_product_Yield.cpp
  gnd/fpy_product_Yields.cpp
  gnd/fpy_time.cpp
  gnd/fpy_yields.cpp
  gnd/gpdc__Legendre.cpp
  gnd/gpdc__X_Ys1d.cpp
  gnd/gpdc__X_Ys2d.cpp
  gnd/gpdc__X_Ys3d.cpp
  gnd/gpdc__Ys1d.cpp
  gnd/gpdc_axes.cpp
  gnd/gpdc_axis.cpp
  gnd/gpdc_cdf_in_xs_pdf_cdf1d.cpp
  gnd/gpdc_confidence_Intervals.cpp
  gnd/gpdc_constant1d.cpp
  gnd/gpdc_covariance.cpp
  gnd/gpdc_fraction.cpp
  gnd/gpdc_gnds_Double.cpp
  gnd/gpdc_grid.cpp
  gnd/gpdc_gridded1d.cpp
  gnd/gpdc_gridded2d.cpp
  gnd/gpdc_gridded3d.cpp
  gnd/gpdc_integer.cpp
  gnd/gpdc_interval.cpp
  gnd/gpdc_link.cpp
  gnd/gpdc_list_Of_Covariances.cpp
  gnd/gpdc_log_Normal.cpp
  gnd/gpdc_pdf.cpp
  gnd/gpdc_pdf_in_xs_pdf_cdf1d.cpp
  gnd/gpdc_polynomial1d.cpp
  gnd/gpdc_regions1d.cpp
  gnd/gpdc_regions2d.cpp
  gnd/gpdc_regions3d.cpp
  gnd/gpdc_standard.cpp
  gnd/gpdc_string.cpp
  gnd/gpdc_uncertainty.cpp
  gnd/gpdc_xs_in_xs_pdf_cdf1d.cpp
  gnd/gpdc_xs_pdf_cdf1d.cpp
  gnd/pops__Po_Ps_database.cpp
  gnd/pops__Q.cpp
  gnd/pops_alias.cpp
  gnd/pops_aliases.cpp
  gnd/pops_average_Energies.cpp
  gnd/pops_average_Energy.cpp
  gnd/pops_baryon.cpp
  gnd/pops_baryons.cpp
  gnd/pops_charge.cpp
  gnd/pops_chemical_Element.cpp
  gnd/pops_chemical_Elements.cpp
  gnd/pops_confidence_Intervals.cpp
  gnd/pops_continuum.cpp
  gnd/pops_decay.cpp
  gnd/pops_decay_Data.cpp
  gnd/pops_decay_Mode.cpp
  gnd/pops_decay_Modes.cpp
  gnd/pops_decay_Path.cpp
  gnd/pops_discrete.cpp
  gnd/pops_discrete_Energy.cpp
  gnd/pops_energy.cpp
  gnd/pops_gauge_Boson.cpp
  gnd/pops_gauge_Bosons.cpp
  gnd/pops_halflife.cpp
  gnd/pops_intensity.cpp
  gnd/pops_internal_Conversion_Coefficients.cpp
  gnd/pops_internal_Pair_Formation_Coefficient.cpp
  gnd/pops_interval.cpp
  gnd/pops_isotope.cpp
  gnd/pops_isotopes.cpp
  gnd/pops_lepton.cpp
  gnd/pops_leptons.cpp
  gnd/pops_log_Normal.cpp
  gnd/pops_mass.cpp
  gnd/pops_meta_Stable.cpp
  gnd/pops_nucleus.cpp
  gnd/pops_nuclide.cpp
  gnd/pops_nuclides.cpp
  gnd/pops_parity.cpp
  gnd/pops_pdf.cpp
  gnd/pops_photon_Emission_Probabilities.cpp
  gnd/pops_probability.cpp
  gnd/pops_product.cpp
  gnd/pops_products.cpp
  gnd/pops_shell.cpp
  gnd/pops_spectra.cpp
  gnd/pops_spectrum.cpp
  gnd/pops_spin.cpp
  gnd/pops_standard.cpp
  gnd/pops_uncertainty.cpp
  gnd/pops_unorthodox.cpp
  gnd/pops_unorthodoxes.cpp
  gnd/processed__L_L_N_L_Angular_Energy.cpp
  gnd/processed__L_L_N_L_Angular_Energy_Of_Angular_Energy.cpp
  gnd/processed__L_L_N_L_Angular_Of_Angular_Energy.cpp
  gnd/processed_angular_Energy_M_C.cpp
  gnd/processed_available_Energy.cpp
  gnd/processed_available_Momentum.cpp
  gnd/processed_average_Product_Energy.cpp
  gnd/processed_average_Product_Momentum.cpp
  gnd/processed_energy_Angular_M_C.cpp
  gnd/processed_multi_Group3d.cpp
  gnd/resonances__Breit_Wigner.cpp
  gnd/resonances__J.cpp
  gnd/resonances__Js.cpp
  gnd/resonances__L.cpp
  gnd/resonances__Ls.cpp
  gnd/resonances__R_Matrix.cpp
  gnd/resonances_channel.cpp
  gnd/resonances_channels.cpp
  gnd/resonances_energy_Interval.cpp
  gnd/resonances_energy_Intervals.cpp
  gnd/resonances_hard_Sphere_Radius.cpp
  gnd/resonances_level_Spacing.cpp
  gnd/resonances_resolved.cpp
  gnd/resonances_resonance_Parameters.cpp
  gnd/resonances_resonance_Reaction.cpp
  gnd/resonances_resonance_Reactions.cpp
  gnd/resonances_resonances.cpp
  gnd/resonances_scattering_Radius.cpp
  gnd/resonances_spin_Group.cpp
  gnd/resonances_spin_Groups.cpp
  gnd/resonances_tabulated_Widths.cpp
  gnd/resonances_unresolved.cpp
  gnd/resonances_width.cpp
  gnd/resonances_widths.cpp
  gnd/styles__Bondarenko.cpp
  gnd/styles__Coulomb_Plus_Nuclear_Elastic_Mu_Cutoff.cpp
  gnd/styles__Monte_Carlo_cdf.cpp
  gnd/styles__Sn_Elastic_Up_Scatter.cpp
  gnd/styles__U_R_R_probability_Tables.cpp
  gnd/styles_angular_Distribution_Reconstructed.cpp
  gnd/styles_average_Product_Data.cpp
  gnd/styles_cross_Section_Reconstructed.cpp
  gnd/styles_equal_Probable_Bins.cpp
  gnd/styles_evaluated.cpp
  gnd/styles_flux.cpp
  gnd/styles_gridded_Cross_Section.cpp
  gnd/styles_group.cpp
  gnd/styles_heated.cpp
  gnd/styles_heated_Multi_Group.cpp
  gnd/styles_inverse_Speed.cpp
  gnd/styles_multi_Band.cpp
  gnd/styles_multi_Group.cpp
  gnd/styles_projectile_Energy_Domain.cpp
  gnd/styles_realization.cpp
  gnd/styles_sigma_Zeros.cpp
  gnd/styles_styles.cpp
  gnd/styles_temperature.cpp
  gnd/styles_transportable.cpp
  gnd/styles_transportables.cpp
  gnd/transport__Kalbach_Mann.cpp
  gnd/transport__N_Body_Phase_Space.cpp
  gnd/transport__U.cpp
  gnd/transport__U_R_R_probability_Tables1d.cpp
  gnd/transport_a.cpp
  gnd/transport_add.cpp
  gnd/transport_angular_Energy.cpp
  gnd/transport_angular_Two_Body.cpp
  gnd/transport_angular_uncorrelated.cpp
  gnd/transport_background.cpp
  gnd/transport_branching1d.cpp
  gnd/transport_branching3d.cpp
  gnd/transport_coherent_Photon.cpp
  gnd/transport_cross_Section.cpp
  gnd/transport_cross_Section_Sum.cpp
  gnd/transport_cross_Sections.cpp
  gnd/transport_discrete_Gamma.cpp
  gnd/transport_distribution.cpp
  gnd/transport_double_Differential_Cross_Section.cpp
  gnd/transport_energy_Angular.cpp
  gnd/transport_energy_uncorrelated.cpp
  gnd/transport_evaporation.cpp
  gnd/transport_f.cpp
  gnd/transport_fast_Region.cpp
  gnd/transport_forward.cpp
  gnd/transport_g.cpp
  gnd/transport_general_Evaporation.cpp
  gnd/transport_incoherent_Photon.cpp
  gnd/transport_incomplete_Reactions.cpp
  gnd/transport_isotropic2d.cpp
  gnd/transport_multi_Group3d.cpp
  gnd/transport_multiplicities.cpp
  gnd/transport_multiplicity.cpp
  gnd/transport_multiplicity_Sum.cpp
  gnd/transport_orphan_Products.cpp
  gnd/transport_output_Channel.cpp
  gnd/transport_photon_Emission_Probabilities.cpp
  gnd/transport_pids.cpp
  gnd/transport_primary_Gamma.cpp
  gnd/transport_production.cpp
  gnd/transport_productions.cpp
  gnd/transport_r.cpp
  gnd/transport_reaction.cpp
  gnd/transport_reaction_Suite.cpp
  gnd/transport_reactions.cpp
  gnd/transport_recoil.cpp
  gnd/transport_reference.cpp
  gnd/transport_resolved_Region.cpp
  gnd/transport_resonances_Link.cpp
  gnd/transport_resonances_With_Background.cpp
  gnd/transport_summands.cpp
  gnd/transport_sums.cpp
  gnd/transport_theta.cpp
  gnd/transport_uncorrelated.cpp
  gnd/transport_unresolved_Region.cpp
  gnd/transport_unspecified.cpp
  gnd/transport_weighted.cpp
  gnd/transport_weighted_Functionals.cpp
  gnd/tsl__Debye_Waller.cpp
  gnd/tsl__S_alpha_beta.cpp
  gnd/tsl__S_table.cpp
  gnd/tsl__T_effective.cpp
  gnd/tsl_characteristic_Cross_Section.cpp
  gnd/tsl_coherent_Elastic.cpp
  gnd/tsl_cutoff_Energy.cpp
  gnd/tsl_e_critical.cpp
  gnd/tsl_e_max.cpp
  gnd/tsl_free_Atom_Cross_Section.cpp
  gnd/tsl_incoherent_Elastic.cpp
  gnd/tsl_incoherent_Inelastic.cpp
  gnd/tsl_scattering_Atom.cpp
  gnd/tsl_scattering_Atoms.cpp
  gnd/tsl_thermal_Scattering.cpp
  xml/XmlElement.cpp
  xml/XmlEndfReader.cpp
)

add_library(${GNDS_NAMESPACE}gnds ALIAS gnds)

# TODO: hide pugixml dependency?
target_link_libraries(gnds PUBLIC pugixml::pugixml)

target_include_directories(gnds
  SYSTEM INTERFACE
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
  $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)

install(TARGETS gnds
  EXPORT GNDS-targets
  LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
  ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

# TODO: move headers/src to a subdirectory so we don't have to do this
foreach(_d gnd xml)
  install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${_d}/"
    DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_d}/"
    FILES_MATCHING PATTERN "*.h"
  )
endforeach()

file(GLOB _top_headers)
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${_d}/"
  DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${_d}/"
  FILES_MATCHING PATTERN "*.h"
)

target_compile_features(gnds
  PUBLIC
    cxx_std_11
)
add_subdirectory(src)

#---------------------------------------------------------------------------#
# TESTS
@@ -366,13 +29,7 @@ target_compile_features(gnds
# EXECUTABLES
#---------------------------------------------------------------------------#

add_executable(GndsParser main.cpp)
target_link_libraries(GndsParser gnds)

install(TARGETS GndsParser
  EXPORT GNDS-targets
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
add_subdirectory(app)

#---------------------------------------------------------------------------#
# EXPORT

app/CMakeLists.txt

0 → 100644
+7 −0
Original line number Diff line number Diff line
add_executable(GndsParser main.cpp)
target_link_libraries(GndsParser gnds)

install(TARGETS GndsParser
  EXPORT GNDS-targets
  RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
+0 −0

File moved.

+0 −0

File moved.

+0 −0

File moved.

Loading