CMakeLists.txt 3.69 KB
Newer Older
1
SET(NekMeshSources
2 3
    InputModules/InputGmsh.cpp
    InputModules/InputNek.cpp
4
    InputModules/InputNek5000.cpp
5 6 7 8 9
    InputModules/InputNekpp.cpp
    InputModules/InputPly.cpp
    InputModules/InputSem.cpp
    InputModules/InputSwan.cpp
    InputModules/InputStarTec.cpp
10
    NekMesh.cpp
11 12
    OutputModules/OutputGmsh.cpp
    OutputModules/OutputNekpp.cpp
Michael Turner's avatar
Michael Turner committed
13
    OutputModules/OutputSTL.cpp
14
    ProcessModules/ProcessBL.cpp
Douglas Serson's avatar
Douglas Serson committed
15
    ProcessModules/ProcessCurve.cpp
Douglas Serson's avatar
Douglas Serson committed
16
    ProcessModules/ProcessCurvedEdges.cpp
17 18 19
    ProcessModules/ProcessCyl.cpp
    ProcessModules/ProcessDetectSurf.cpp
    ProcessModules/ProcessExtractSurf.cpp
20
    ProcessModules/ProcessExtractTetPrismInterface.cpp
21
    ProcessModules/ProcessJac.cpp
Michael Turner's avatar
Michael Turner committed
22
    ProcessModules/ProcessLinkCheck.cpp
Michael Turner's avatar
Michael Turner committed
23
    ProcessModules/ProcessLinear.cpp
24 25 26 27
    ProcessModules/ProcessPerAlign.cpp
    ProcessModules/ProcessScalar.cpp
    ProcessModules/ProcessSpherigon.cpp
    ProcessModules/ProcessTetSplit.cpp
Michael Turner's avatar
Michael Turner committed
28
    ProcessModules/ProcessOptiExtract.cpp
29
    ProcessModules/ProcessInsertSurface.cpp
Michael Turner's avatar
Michael Turner committed
30
    ProcessModules/ProcessExtrude.cpp
Michael Turner's avatar
Michael Turner committed
31 32 33 34
    ProcessModules/ProcessVarOpti/ProcessVarOpti.cpp
    ProcessModules/ProcessVarOpti/PreProcessing.cpp
    ProcessModules/ProcessVarOpti/NodeOpti.cpp
    ProcessModules/ProcessVarOpti/ElUtil.cpp
35
)
36

37
IF (NEKTAR_USE_CCM)
38
    SET(NekMeshSources ${NekMeshSources} InputModules/InputStar.cpp)
39 40
ENDIF (NEKTAR_USE_CCM)

Chris Cantwell's avatar
Chris Cantwell committed
41
IF (NEKTAR_USE_VTK)
42
    SET(NekMeshSources ${NekMeshSources} InputModules/InputVtk.cpp OutputModules/OutputVtk.cpp)
Chris Cantwell's avatar
Chris Cantwell committed
43 44
ENDIF (NEKTAR_USE_VTK)

45
IF (NEKTAR_USE_MESHGEN)
46
    SET(NekMeshSources ${NekMeshSources}
47
            ProcessModules/ProcessVarOpti/NodeOptiCAD.cpp
's avatar
committed
48 49 50 51
            ProcessModules/ProcessVarOpti/ProcessVarOpti.cpp
            ProcessModules/ProcessVarOpti/PreProcessing.cpp
            ProcessModules/ProcessVarOpti/NodeOpti.cpp
            ProcessModules/ProcessVarOpti/ElUtil.cpp
Michael Turner's avatar
Michael Turner committed
52
            InputModules/InputMCF.cpp)
53
ENDIF (NEKTAR_USE_MESHGEN)
Michael Turner's avatar
Michael Turner committed
54

55 56
# Don't use macro -- this way we can just link against NekMeshUtils and
# LocalRegions.
57 58
ADD_UTILITIES_EXECUTABLE(NekMesh COMPONENT nekmesh
    SOURCES ${NekMeshSources}
59
    DEPENDS NekMeshUtils FieldUtils)
60

61
IF (NEKTAR_USE_CCM)
's avatar
committed
62
   TARGET_LINK_LIBRARIES(NekMesh LINK_PRIVATE ${CCMIO_LIBRARIES})
63 64
ENDIF (NEKTAR_USE_CCM)

65
IF (NEKTAR_USE_VTK)
66
    IF (VTK_MAJOR_VERSION LESS 6)
67
        TARGET_LINK_LIBRARIES(NekMesh LINK_PUBLIC vtkCommon vtkIO vtkGraphics)
68
    ELSE ()
69
        TARGET_LINK_LIBRARIES(NekMesh LINK_PUBLIC vtkCommonCore vtkIOLegacy)
70
    ENDIF ()
71
ENDIF (NEKTAR_USE_VTK)
72

Dave Moxey's avatar
Dave Moxey committed
73
# Nektar++
74 75 76 77 78
ADD_NEKTAR_TEST(Nektar++/InvalidTetFace)
ADD_NEKTAR_TEST(Nektar++/InvalidQuads)
ADD_NEKTAR_TEST(Nektar++/Tube45Refinement)
ADD_NEKTAR_TEST(Nektar++/Tube45Refinement_extractsurf)
ADD_NEKTAR_TEST(Nektar++/CylQuadBl)
Dave Moxey's avatar
Dave Moxey committed
79
# Gmsh tests
80 81 82 83 84 85 86 87 88 89 90
ADD_NEKTAR_TEST(Gmsh/CubeAllElements)
ADD_NEKTAR_TEST(Gmsh/CubeHex)
ADD_NEKTAR_TEST(Gmsh/CubeHexLinear)
ADD_NEKTAR_TEST(Gmsh/CubePrism)
ADD_NEKTAR_TEST(Gmsh/CubePrismLinear)
ADD_NEKTAR_TEST(Gmsh/CubeTet)
ADD_NEKTAR_TEST(Gmsh/CubeTetLinear)
ADD_NEKTAR_TEST(Gmsh/SquareQuad)
ADD_NEKTAR_TEST(Gmsh/SquareQuadLinear)
ADD_NEKTAR_TEST(Gmsh/SquareTri)
ADD_NEKTAR_TEST(Gmsh/SquareTriLinear)
Dave Moxey's avatar
Dave Moxey committed
91
# Nektar tests
92 93
ADD_NEKTAR_TEST(Nektar/HexLinear)
ADD_NEKTAR_TEST(Nektar/Tube45)
94
ADD_NEKTAR_TEST(Nektar/UKMesh)
95
# Nek5000 tests
96 97
ADD_NEKTAR_TEST(Nek5000/3da)
ADD_NEKTAR_TEST(Nek5000/r1854a)
Dave Moxey's avatar
Dave Moxey committed
98
# StarCCM tests
99 100
ADD_NEKTAR_TEST(StarTec/CubePer)
ADD_NEKTAR_TEST(StarTec/StraightRW LENGTHY)
101 102 103

# MeshGen test
IF(NEKTAR_USE_MESHGEN)
104 105
    ADD_NEKTAR_TEST(MeshGen/cylinder)
    ADD_NEKTAR_TEST(MeshGen/sphere)
106 107
    ADD_NEKTAR_TEST(MeshGen/2d-cad)
    ADD_NEKTAR_TEST(MeshGen/2d-naca)
108
    ADD_NEKTAR_TEST(MeshGen/geo)
109 110
    ADD_NEKTAR_TEST(MeshGen/t106step)
    ADD_NEKTAR_TEST(MeshGen/rev LENGTHY)
111
ENDIF()
112

113
# varopti tests
114
ADD_NEKTAR_TEST(MeshGen/varopti_cubesphere LENGTHY)