Commit e16d8f5e authored by GILLES Sebastien's avatar GILLES Sebastien

#1217 Dispath the list of files in subdirectories.

parent 6747dd8f
......@@ -5,12 +5,25 @@ set (CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
MESSAGE("Module path: ${CMAKE_MODULE_PATH}")
include(CustomCommands)
include(Paths)
MESSAGE( STATUS "${OPS_DIR}: " ${OPS_DIR} )
MESSAGE("Generated with config types: ${CMAKE_CONFIGURATION_TYPES}")
MESSAGE( STATUS "${CMAKE_BUILD_TYPE}: " ${CMAKE_BUILD_TYPE} )
# Check whether
# string(COMPARE EQUAL "${CMAKE_BUILD_TYPE}" "" NO_BUILD_TYPE)
# if(NO_BUILD_TYPE)
# set(CMAKE_BUILD_TYPE ${MODE})
# endif()
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} --my-debug-flags")
MESSAGE( STATUS "${CMAKE_BUILD_TYPE}: " ${CMAKE_BUILD_TYPE} )
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Sources /
${OPS_DIR} /
......@@ -23,57 +36,8 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Sources /
${BOOST_INCL_DIR}
)
set(UTILITIES_SRC /
Sources/Utilities/Filesystem/Folder.cpp /
Sources/Utilities/Filesystem/File.cpp /
Sources/Utilities/TimeKeep/TimeKeep.cpp /
Sources/Utilities/Exceptions/Exception.cpp /
Sources/Utilities/Exceptions/PrintAndAbort.cpp /
Sources/Utilities/Exceptions/Factory.cpp /
Sources/Utilities/InputParameterList/Definitions.cpp /
Sources/Utilities/InputParameterList/ExtendedOps.cpp /
Sources/Utilities/InputParameterList/Internal/TupleIteration/Impl/PrepareDefaultEntry.cpp /
Sources/Utilities/InputParameterList/Internal/TupleIteration/Traits/Traits.cpp /
Sources/Utilities/InputParameterList/Internal/ManualParsing/ManualParsing.cpp /
Sources/Utilities/InputParameterList/Exceptions/InputParameterList.cpp /
Sources/Utilities/Singleton/Exceptions/Singleton.cpp /
Sources/Utilities/Environment/EnvironmentVariable.cpp /
Sources/Utilities/String/EmptyString.cpp /
Sources/Utilities/String/String.cpp /
Sources/Utilities/Containers/BoolArray.cpp)
set(THIRD_PARTY_SRC /
Sources/ThirdParty/Wrappers/Mpi/Exceptions/Mpi.cpp /
Sources/ThirdParty/Wrappers/Mpi/MacroEncapsulation/Op.cpp /
Sources/ThirdParty/Wrappers/Mpi/MacroEncapsulation/Comm.cpp /
Sources/ThirdParty/Wrappers/Mpi/Mpi.cpp /
Sources/ThirdParty/Wrappers/Parmetis/Exceptions/Parmetis.cpp /
Sources/ThirdParty/Wrappers/Parmetis/Parmetis.cpp /
Sources/ThirdParty/Wrappers/Seldon/MatrixOperations.cpp /
Sources/ThirdParty/Wrappers/Seldon/SeldonFunctions.cpp /
Sources/ThirdParty/Wrappers/Petsc/Viewer.cpp /
Sources/ThirdParty/Wrappers/Petsc/Petsc.cpp /
Sources/ThirdParty/Wrappers/Petsc/Print.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Internal/Convergence/KspConvergenceReason.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Internal/Convergence/SnesConvergenceReason.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Internal/Solver.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Instantiations/Umfpack.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Instantiations/Gmres.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Instantiations/Mumps.cpp /
Sources/ThirdParty/Wrappers/Petsc/Solver/Snes.cpp /
Sources/ThirdParty/Wrappers/Petsc/Exceptions/Petsc.cpp /
Sources/ThirdParty/Wrappers/Petsc/Vector/AccessGhostContent.cpp /
Sources/ThirdParty/Wrappers/Petsc/Vector/Internal/VectorHelper.cpp /
Sources/ThirdParty/Wrappers/Petsc/Vector/Internal/CheckUpdateGhostManager.cpp /
Sources/ThirdParty/Wrappers/Petsc/Vector/Vector.cpp /
Sources/ThirdParty/Wrappers/Petsc/Vector/AccessVectorContent.cpp /
Sources/ThirdParty/Wrappers/Petsc/Matrix/MatrixPattern.cpp /
Sources/ThirdParty/Wrappers/Petsc/Matrix/Internal/BaseMatrix.cpp /
Sources/ThirdParty/Wrappers/Petsc/Matrix/MatrixInfo.cpp /
Sources/ThirdParty/Wrappers/Petsc/Matrix/Matrix.cpp /
Sources/ThirdParty/Wrappers/Libmesh/Libmesh.cpp
)
add_subdirectory(Sources)
add_library(utilities STATIC ${UTILITIES_SRC} ${THIRD_PARTY_SRC})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/Utilities)
include(Utilities)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ThirdParty)
include(ThirdParty)
add_library(utilities STATIC ${UTILITIES_SRC} ${THIRD_PARTY_SRC})
set(THIRD_PARTY_SRC /
ThirdParty/Wrappers/Mpi/Exceptions/Mpi.cpp /
ThirdParty/Wrappers/Mpi/MacroEncapsulation/Op.cpp /
ThirdParty/Wrappers/Mpi/MacroEncapsulation/Comm.cpp /
ThirdParty/Wrappers/Mpi/Mpi.cpp /
ThirdParty/Wrappers/Parmetis/Exceptions/Parmetis.cpp /
ThirdParty/Wrappers/Parmetis/Parmetis.cpp /
ThirdParty/Wrappers/Seldon/MatrixOperations.cpp /
ThirdParty/Wrappers/Seldon/SeldonFunctions.cpp /
ThirdParty/Wrappers/Petsc/Viewer.cpp /
ThirdParty/Wrappers/Petsc/Petsc.cpp /
ThirdParty/Wrappers/Petsc/Print.cpp /
ThirdParty/Wrappers/Petsc/Solver/Internal/Convergence/KspConvergenceReason.cpp /
ThirdParty/Wrappers/Petsc/Solver/Internal/Convergence/SnesConvergenceReason.cpp /
ThirdParty/Wrappers/Petsc/Solver/Internal/Solver.cpp /
ThirdParty/Wrappers/Petsc/Solver/Instantiations/Umfpack.cpp /
ThirdParty/Wrappers/Petsc/Solver/Instantiations/Gmres.cpp /
ThirdParty/Wrappers/Petsc/Solver/Instantiations/Mumps.cpp /
ThirdParty/Wrappers/Petsc/Solver/Snes.cpp /
ThirdParty/Wrappers/Petsc/Exceptions/Petsc.cpp /
ThirdParty/Wrappers/Petsc/Vector/AccessGhostContent.cpp /
ThirdParty/Wrappers/Petsc/Vector/Internal/VectorHelper.cpp /
ThirdParty/Wrappers/Petsc/Vector/Internal/CheckUpdateGhostManager.cpp /
ThirdParty/Wrappers/Petsc/Vector/Vector.cpp /
ThirdParty/Wrappers/Petsc/Vector/AccessVectorContent.cpp /
ThirdParty/Wrappers/Petsc/Matrix/MatrixPattern.cpp /
ThirdParty/Wrappers/Petsc/Matrix/Internal/BaseMatrix.cpp /
ThirdParty/Wrappers/Petsc/Matrix/MatrixInfo.cpp /
ThirdParty/Wrappers/Petsc/Matrix/Matrix.cpp /
ThirdParty/Wrappers/Libmesh/Libmesh.cpp
)
\ No newline at end of file
set(UTILITIES_SRC /
Utilities/Filesystem/Folder.cpp /
Utilities/Filesystem/File.cpp /
Utilities/TimeKeep/TimeKeep.cpp /
Utilities/Exceptions/Exception.cpp /
Utilities/Exceptions/PrintAndAbort.cpp /
Utilities/Exceptions/Factory.cpp /
Utilities/InputParameterList/Definitions.cpp /
Utilities/InputParameterList/ExtendedOps.cpp /
Utilities/InputParameterList/Internal/TupleIteration/Impl/PrepareDefaultEntry.cpp /
Utilities/InputParameterList/Internal/TupleIteration/Traits/Traits.cpp /
Utilities/InputParameterList/Internal/ManualParsing/ManualParsing.cpp /
Utilities/InputParameterList/Exceptions/InputParameterList.cpp /
Utilities/Singleton/Exceptions/Singleton.cpp /
Utilities/Environment/EnvironmentVariable.cpp /
Utilities/String/EmptyString.cpp /
Utilities/String/String.cpp /
Utilities/Containers/BoolArray.cpp)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment