CMakeLists.txt 3.62 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
# A minimum version for cmake command is required.
cmake_minimum_required(VERSION 3.8)

set (CMAKE_CXX_STANDARD 17)

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)



include(CustomCommands)
include(Paths)

MESSAGE( STATUS "${OPS_DIR}:         " ${OPS_DIR} )

include_directories(${CMAKE_CURRENT_SOURCE_DIR}/Sources /
                    ${OPS_DIR} /
                    ${SELDON_DIR} /
                    ${OPEN_MPI_INCL_DIR} /
                    ${PETSC_GENERAL_INCL_DIR} /
                    ${PETSC_DEBUG_INCL_DIR} /
                    ${PARMETIS_INCL_DIR} /
                    ${LUA_INCL_DIR} /
                    ${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_library(utilities STATIC ${UTILITIES_SRC} ${THIRD_PARTY_SRC})