CMakeLists.txt 6.62 KB
Newer Older
1 2 3 4 5 6 7 8 9
# -----------------------------------------
# treatment of some options: add definition
# -----------------------------------------
set_external_def()

set(text " ")
message_verbose(text)  
message(STATUS "=============== --")
message(STATUS "entering Xfiles --")
10
set(text       "=============== --")
11 12 13 14 15 16 17 18 19 20 21 22
message_verbose(text)  

define_archos_suffixe(ARCHOS)

set_lib_install_root(LIBRARIES_INSTALL_PATH)

set(text "libraries install path = ${LIBRARIES_INSTALL_PATH}/${ARCHOS}")
message_verbose(text)

##################################################################################################
#################################### add_subdirectories() ########################################
##################################################################################################
23 24
if(BUILD_XTOOL)
  add_subdirectory(xTool                                      "${CMAKE_CURRENT_BINARY_DIR}/xTool")
25 26
endif()

27 28 29
if(BUILD_XTENSOR)
   add_subdirectory(xTensor                                      "${CMAKE_CURRENT_BINARY_DIR}/xTensor")
endif(BUILD_XTENSOR)
30 31 32 33 34

if(BUILD_XGEOMTOOLS)
  add_subdirectory(xGeom/xGeomTools                           "${CMAKE_CURRENT_BINARY_DIR}/xGeom/xGeomTools")
endif(BUILD_XGEOMTOOLS)

35 36 37
if(BUILD_XMAPPING)
   add_subdirectory(xMapping                                     "${CMAKE_CURRENT_BINARY_DIR}/xMapping")
endif(BUILD_XMAPPING)
38

39 40
if(BUILD_TRELLIS)                     
  add_subdirectory(Trellis                                    "${CMAKE_CURRENT_BINARY_DIR}/Trellis")
41 42
endif(BUILD_TRELLIS)

43 44
if(BUILD_XINTERFACE_AOMD_GENERAL)
  add_subdirectory(xInterface/AOMD/                           "${CMAKE_CURRENT_BINARY_DIR}/xInterface/AOMD")
45 46
endif()

47 48 49 50 51 52 53

if(    BUILD_XSOLVERBASE 
    OR BUILD_XINTERFACE_MUMPS
    OR BUILD_XINTERFACE_LAPACK
    OR BUILD_XINTERFACE_SUPERLU
    OR BUILD_XINTERFACE_TAUCS
    OR BUILD_XINTERFACE_PASTIX
54
    )
55
  add_subdirectory(xLinAlg                                    "${CMAKE_CURRENT_BINARY_DIR}/xLinAlg")
56 57
endif()

58 59 60 61 62 63

if(BUILD_XLEGACYSIMPLECUT)
  add_subdirectory(xCut/xLegacySimpleCut)
endif(BUILD_XLEGACYSIMPLECUT) 


64 65 66 67 68
if( BUILD_XMESHINTERFACE_MIBASE OR BUILD_XMESHINTERFACE_AOMD )
  add_subdirectory(xInterface/xMeshInterface      "${CMAKE_CURRENT_BINARY_DIR}/xInterface/xMeshInterface")
endif()


69 70
if( BUILD_XINTERFACE_PARMETIS )
  add_subdirectory(xInterface/Graph                           "${CMAKE_CURRENT_BINARY_DIR}/xInterface/Graph")
71
endif()
72 73 74 75

if(BUILD_XFEM)
  option(USE_XREFMESH_WITH_SUB "use mesh refinement with submesh"                 OFF)
  option(USE_DEBUG_FLAG        "use DEBUG print"                                  OFF)
76
  add_subdirectory(xQuadrature                                "${CMAKE_CURRENT_BINARY_DIR}/xQuadrature")
77
  add_subdirectory(xFEM                                       "${CMAKE_CURRENT_BINARY_DIR}/xFEM")
78
  add_subdirectory(xExport                                    "${CMAKE_CURRENT_BINARY_DIR}/xExport")
79 80 81 82
endif(BUILD_XFEM)


if(BUILD_XCRACK)
83
  add_subdirectory(xCrack                                     "${CMAKE_CURRENT_BINARY_DIR}/xCrack")
84 85
endif(BUILD_XCRACK)

86
if(BUILD_XDOMAIDECOMP)
87
  add_subdirectory(xDomainDecomp                              "${CMAKE_CURRENT_BINARY_DIR}/xDomainDecomp")
88
endif(BUILD_XDOMAIDECOMP)
89 90

if(BUILD_XEXT)
91
  add_subdirectory(xExt                                       "${CMAKE_CURRENT_BINARY_DIR}/xExt") 
92 93
endif(BUILD_XEXT)                                  

94 95 96
if(BUILD_XANALYTICALSOLUTION)
  add_subdirectory(xAnalyticalSolution                        "${CMAKE_CURRENT_BINARY_DIR}/xAnalyticalSolution") 
endif(BUILD_XANALYTICALSOLUTION)                                  
97 98


99 100 101
if(BUILD_XPHYSICS)
  add_subdirectory(xPhysics                                   "${CMAKE_CURRENT_BINARY_DIR}/xPhysics")
endif(BUILD_XPHYSICS)
102 103


104 105
if(BUILD_XDISTMESH)
  add_subdirectory(xMeshTool/xDistMesh                        "${CMAKE_CURRENT_BINARY_DIR}/xMeshTool/xDistMesh")
106 107 108
endif()


109 110 111 112 113 114 115 116
if(BUILD_XDISTANCENEAREST)
  add_subdirectory(xGeom/xDistanceNearest                     "${CMAKE_CURRENT_BINARY_DIR}/xGeom/xDistanceNearest")
endif(BUILD_XDISTANCENEAREST)

if(BUILD_XSCANELEMENT)
  add_subdirectory(xGeom/xScanElement                         "${CMAKE_CURRENT_BINARY_DIR}/xGeom/xScanElement")
endif(BUILD_XSCANELEMENT)

117 118


119 120 121 122
if(BUILD_XOCTREE)
  add_subdirectory(xOctree                                    "${CMAKE_CURRENT_BINARY_DIR}/xOctree")
  add_subdirectory(xInterface/xOctree                         "${CMAKE_CURRENT_BINARY_DIR}/xInterface/xOctree")
endif(BUILD_XOCTREE)
123 124 125 126




127 128 129
if(BUILD_XDOUBLECUT)
  add_subdirectory(xCut/xDoubleCut)
endif(BUILD_XDOUBLECUT) 
130 131 132


if(BUILD_XTLS)
133
  add_subdirectory(xTLS                                       "${CMAKE_CURRENT_BINARY_DIR}/xTLS")
134 135
endif(BUILD_XTLS)

136

Rebecca NAKHOUL's avatar
Rebecca NAKHOUL committed
137
if(BUILD_XTWOSCALE)
138
  add_subdirectory(xTwoscale                                  "${CMAKE_CURRENT_BINARY_DIR}/xTwoscale")
Rebecca NAKHOUL's avatar
Rebecca NAKHOUL committed
139
endif(BUILD_XTWOSCALE)
140 141 142 143


if(BUILD_XTEMPLATEREFINEMESH) 
  add_subdirectory(xInterface/xTemplateRefineMesh             "${CMAKE_CURRENT_BINARY_DIR}/xInterface/xTemplateRefineMesh")
144 145 146
endif()


147
if(BUILD_ATOMIC_TEST) 
148

149 150 151 152
  if(BUILD_TRELLIS_TEST) 
    add_subdirectory(Trellis/model/model/test                 "${CMAKE_BINARY_DIR}/Atomic/model") 
    add_subdirectory(Trellis/AOMD/AOMD/test                   "${CMAKE_BINARY_DIR}/Atomic/AOMD") 
  endif()
153

154 155 156 157
  if(BUILD_XMAPPING_TEST)
      add_subdirectory(xMapping/test                          "${CMAKE_BINARY_DIR}/Atomic/xMapping")
  endif()

158 159 160
  if(BUILD_XTOOL_TEST)
    add_subdirectory(xTool/test                               "${CMAKE_BINARY_DIR}/Atomic/xTool")
  endif()
161

162 163 164
  if(BUILD_XDISTMESH_TEST) 
    add_subdirectory(xMeshTool/xDistMesh/test                 "${CMAKE_BINARY_DIR}/Atomic/xDistMesh") 
  endif()
165

166 167 168 169
  if(BUILD_XFEM_TEST)
    add_subdirectory(xFEM/test                                "${CMAKE_BINARY_DIR}/Atomic/xFEM")
  endif()

170 171 172
  if(BUILD_XOCTREE_TEST) 
    if(NOT PARALLEL AND NOT PARSEQ AND NOT PARDIST AND NOT PARFUTURE)
      add_subdirectory(xOctree/test                           "${CMAKE_BINARY_DIR}/Atomic/xOctree")
173
    endif()
174
  endif()
175

176 177 178
  if(BUILD_XSOLVERBASE_TEST ) 
    add_subdirectory(xLinAlg/xSolverBase/test                 "${CMAKE_BINARY_DIR}/Atomic/SolverBase")
  endif()
179

180 181 182
  if(BUILD_BASICITERSOLVER_TEST ) 
    add_subdirectory(xLinAlg/xInterfaceBasicIterSolver/test   "${CMAKE_BINARY_DIR}/Atomic/BasicIterSolver")
  endif()
183

184 185 186
  if(BUILD_SUPERLU_TEST AND USE_SUPERLU) 
    add_subdirectory(xLinAlg/xInterfaceSuperLu/test           "${CMAKE_BINARY_DIR}/Atomic/SuperLu") 
  endif()
187

188 189 190
  if(BUILD_LAPACK_TEST) 
    add_subdirectory(xLinAlg/xInterfaceLapack/test            "${CMAKE_BINARY_DIR}/Atomic/Lapack")   
  endif()
191 192


193 194 195
  if(BUILD_XTLS_TEST) 
    add_subdirectory(xTLS/test                                "${CMAKE_BINARY_DIR}/Atomic/xTLS") 
  endif()
196 197 198


endif(BUILD_ATOMIC_TEST)