Skip to content
Snippets Groups Projects
Commit 4c570735 authored by Dmitri Naumov's avatar Dmitri Naumov Committed by Dmitrij Naumov
Browse files

Create separate process libraries.

Separting each process implementation into own library.
All processes collected in the INTERFACE library 'processes'.
parent 9f207cad
No related branches found
No related tags found
No related merge requests found
Showing
with 147 additions and 44 deletions
......@@ -6,7 +6,7 @@ set(LIB_SOURCES ${SOURCES_APPLICATIONSLIB})
add_library(ApplicationsLib ${LIB_SOURCES})
target_link_libraries(ApplicationsLib
PUBLIC BaseLib GeoLib NumLib ProcessLib logog
PUBLIC BaseLib GeoLib Processes logog
PRIVATE MathLib MeshLib
)
......
add_executable(postLIE postLIE.cpp)
target_link_libraries(postLIE MeshLib ProcessLib)
target_link_libraries(postLIE MeshLib LIE)
set_target_properties(postLIE PROPERTIES FOLDER Utilities)
####################
......
include(${PROJECT_SOURCE_DIR}/scripts/cmake/OGSEnabledElements.cmake)
add_subdirectory(ComponentTransport)
add_subdirectory(GroundwaterFlow)
add_subdirectory(HT)
add_subdirectory(HeatConduction)
add_subdirectory(HydroMechanics)
add_subdirectory(LiquidFlow)
add_subdirectory(LIE)
add_subdirectory(PhaseField)
add_subdirectory(RichardsComponentTransport)
add_subdirectory(RichardsFlow)
add_subdirectory(SmallDeformation)
add_subdirectory(TES)
add_subdirectory(ThermalTwoPhaseFlowWithPP)
add_subdirectory(ThermoMechanics)
add_subdirectory(TwoPhaseFlowWithPP)
add_subdirectory(TwoPhaseFlowWithPrho)
add_library(Processes INTERFACE)
target_link_libraries(Processes INTERFACE
ComponentTransport
GroundwaterFlow
HT
HeatConduction
HydroMechanics
LiquidFlow
LIE
PhaseField
RichardsComponentTransport
RichardsFlow
SmallDeformation
TES
ThermalTwoPhaseFlowWithPP
ThermoMechanics
TwoPhaseFlowWithPP
TwoPhaseFlowWithPrho)
APPEND_SOURCE_FILES(SOURCES)
APPEND_SOURCE_FILES(SOURCES BoundaryCondition)
APPEND_SOURCE_FILES(SOURCES CalculateSurfaceFlux)
......@@ -8,29 +44,6 @@ APPEND_SOURCE_FILES(SOURCES Parameter)
APPEND_SOURCE_FILES(SOURCES SourceTerms)
APPEND_SOURCE_FILES(SOURCES Utils)
APPEND_SOURCE_FILES(SOURCES ComponentTransport)
APPEND_SOURCE_FILES(SOURCES Deformation)
APPEND_SOURCE_FILES(SOURCES GroundwaterFlow)
APPEND_SOURCE_FILES(SOURCES HT)
APPEND_SOURCE_FILES(SOURCES HeatConduction)
APPEND_SOURCE_FILES(SOURCES HydroMechanics)
APPEND_SOURCE_FILES(SOURCES LIE/BoundaryCondition)
APPEND_SOURCE_FILES(SOURCES LIE/Common)
APPEND_SOURCE_FILES(SOURCES LIE/HydroMechanics)
APPEND_SOURCE_FILES(SOURCES LIE/HydroMechanics/LocalAssembler)
APPEND_SOURCE_FILES(SOURCES LIE/SmallDeformation)
APPEND_SOURCE_FILES(SOURCES LIE/SmallDeformation/LocalAssembler)
APPEND_SOURCE_FILES(SOURCES LiquidFlow)
APPEND_SOURCE_FILES(SOURCES PhaseField)
APPEND_SOURCE_FILES(SOURCES RichardsComponentTransport)
APPEND_SOURCE_FILES(SOURCES RichardsFlow)
APPEND_SOURCE_FILES(SOURCES SmallDeformation)
APPEND_SOURCE_FILES(SOURCES TES)
APPEND_SOURCE_FILES(SOURCES ThermalTwoPhaseFlowWithPP)
APPEND_SOURCE_FILES(SOURCES ThermoMechanics)
APPEND_SOURCE_FILES(SOURCES TwoPhaseFlowWithPP)
APPEND_SOURCE_FILES(SOURCES TwoPhaseFlowWithPrho)
add_library(ProcessLib ${SOURCES})
target_link_libraries(ProcessLib
......@@ -51,22 +64,3 @@ endif()
if(OGS_USE_PCH)
cotire(ProcessLib)
endif()
### Tests ###
include(ComponentTransport/Tests.cmake)
include(GroundwaterFlow/Tests.cmake)
include(HeatConduction/Tests.cmake)
include(HT/Tests.cmake)
include(HydroMechanics/Tests.cmake)
include(LIE/HydroMechanics/Tests.cmake)
include(LIE/SmallDeformation/Tests.cmake)
include(LiquidFlow/Tests.cmake)
include(PhaseField/Tests.cmake)
include(RichardsFlow/Tests.cmake)
include(RichardsComponentTransport/Tests.cmake)
include(SmallDeformation/Tests.cmake)
include(TES/Tests.cmake)
include(ThermoMechanics/Tests.cmake)
include(TwoPhaseFlowWithPP/Tests.cmake)
include(TwoPhaseFlowWithPrho/Tests.cmake)
include(ThermalTwoPhaseFlowWithPP/Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(ComponentTransport ${SOURCES})
target_link_libraries(ComponentTransport
PUBLIC ProcessLib
)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(GroundwaterFlow ${SOURCES})
target_link_libraries(GroundwaterFlow
PUBLIC ProcessLib
)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(HT ${SOURCES})
target_link_libraries(HT PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(HeatConduction ${SOURCES})
target_link_libraries(HeatConduction PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(HydroMechanics ${SOURCES})
target_link_libraries(HydroMechanics PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES BoundaryCondition)
APPEND_SOURCE_FILES(SOURCES Common)
APPEND_SOURCE_FILES(SOURCES HydroMechanics)
APPEND_SOURCE_FILES(SOURCES HydroMechanics/LocalAssembler)
APPEND_SOURCE_FILES(SOURCES SmallDeformation)
APPEND_SOURCE_FILES(SOURCES SmallDeformation/LocalAssembler)
add_library(LIE ${SOURCES})
target_link_libraries(LIE PUBLIC ProcessLib)
include(HydroMechanics/Tests.cmake)
include(SmallDeformation/Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(LiquidFlow ${SOURCES})
target_link_libraries(LiquidFlow PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(PhaseField ${SOURCES})
target_link_libraries(PhaseField PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(RichardsComponentTransport ${SOURCES})
target_link_libraries(RichardsComponentTransport PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(RichardsFlow ${SOURCES})
target_link_libraries(RichardsFlow PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(SmallDeformation ${SOURCES})
target_link_libraries(SmallDeformation PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(TES ${SOURCES})
target_link_libraries(TES PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(ThermalTwoPhaseFlowWithPP ${SOURCES})
target_link_libraries(ThermalTwoPhaseFlowWithPP PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(ThermoMechanics ${SOURCES})
target_link_libraries(ThermoMechanics PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(TwoPhaseFlowWithPP ${SOURCES})
target_link_libraries(TwoPhaseFlowWithPP PUBLIC ProcessLib)
include(Tests.cmake)
APPEND_SOURCE_FILES(SOURCES)
add_library(TwoPhaseFlowWithPrho ${SOURCES})
target_link_libraries(TwoPhaseFlowWithPrho PUBLIC ProcessLib)
include(Tests.cmake)
......@@ -38,6 +38,7 @@ target_link_libraries(testrunner
ApplicationsLib
ApplicationsFileIO
GTest
LIE
MeshGeoToolsLib
MaterialLib
MeshLib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment