# DFPM # ======== add_custom_target(dfpm_incl SOURCES types.hpp 1dtransport/diffusion_parameters.hpp mesh.hpp meshes/mesh1dfwd.hpp meshes/mesh1d.hpp meshes/uniform_mesh1d.hpp meshes/generic_mesh1d.hpp meshes/axisymmetric_uniform_mesh1d.hpp meshes/axisymmetric_mesh1d.hpp ) set(DFPMLIB io/meshes.cpp meshes/axisymmetric_mesh1d.cpp meshes/generic_mesh1d.cpp 1dtransport/diffusion.cpp ) set_visibility_hidden_flag(${DFPMLIB}) add_library(dfpm SHARED ${DFPMLIB}) target_link_libraries(dfpm specmicp_common) install(TARGETS dfpm LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR} ) # includes # -------- set(DFPM_MESH_INCLUDE_LIST meshes/mesh1dfwd.hpp meshes/mesh1d.hpp meshes/uniform_mesh1d.hpp meshes/generic_mesh1d.hpp meshes/axisymmetric_uniform_mesh1d.hpp meshes/axisymmetric_mesh1d.hpp ) install(FILES types.hpp mesh.hpp DESTINATION ${INCLUDE_INSTALL_DIR}/dfpm ) install(FILES 1dtransport/diffusion_parameters.hpp 1dtransport/diffusion.hpp DESTINATION ${INCLUDE_INSTALL_DIR}/dfpm/1dtransport ) install(FILES io/meshes.hpp DESTINATION ${INCLUDE_INSTALL_DIR}/dfpm/io ) install(FILES ${DFPM_MESH_INCLUDE_LIST} DESTINATION ${INCLUDE_INSTALL_DIR}/dfpm/meshes ) # static libraries # ---------------- if(SPECMICP_BUILD_STATIC) add_library(dfpm_static STATIC ${DFPMLIB}) install(TARGETS dfpm_static ARCHIVE DESTINATION ${STATIC_LIBRARY_INSTALL_DIR} ) else() add_library(dfpm_static EXCLUDE_FROM_ALL STATIC ${DFPMLIB}) endif() set_target_properties(dfpm_static PROPERTIES OUTPUT_NAME dfpm) target_link_libraries(dfpm_static specmicp_common_static)