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

37
SET(NekMeshSources
38
39
    InputModules/InputGmsh.cpp
    InputModules/InputNek.cpp
40
    InputModules/InputNek5000.cpp
41
42
43
44
45
    InputModules/InputNekpp.cpp
    InputModules/InputPly.cpp
    InputModules/InputSem.cpp
    InputModules/InputSwan.cpp
    InputModules/InputStarTec.cpp
46
    NekMesh.cpp
47
48
    OutputModules/OutputGmsh.cpp
    OutputModules/OutputNekpp.cpp
Michael Turner's avatar
Michael Turner committed
49
    OutputModules/OutputSTL.cpp
50
    ProcessModules/ProcessBL.cpp
Douglas Serson's avatar
Douglas Serson committed
51
    ProcessModules/ProcessCurve.cpp
Douglas Serson's avatar
Douglas Serson committed
52
    ProcessModules/ProcessCurvedEdges.cpp
53
54
55
    ProcessModules/ProcessCyl.cpp
    ProcessModules/ProcessDetectSurf.cpp
    ProcessModules/ProcessExtractSurf.cpp
56
    ProcessModules/ProcessExtractTetPrismInterface.cpp
57
    ProcessModules/ProcessJac.cpp
Michael Turner's avatar
Michael Turner committed
58
    ProcessModules/ProcessLinkCheck.cpp
Michael Turner's avatar
Michael Turner committed
59
    ProcessModules/ProcessLinear.cpp
60
61
62
63
    ProcessModules/ProcessPerAlign.cpp
    ProcessModules/ProcessScalar.cpp
    ProcessModules/ProcessSpherigon.cpp
    ProcessModules/ProcessTetSplit.cpp
Michael Turner's avatar
Michael Turner committed
64
    ProcessModules/ProcessOptiExtract.cpp
65
    ProcessModules/ProcessInsertSurface.cpp
Michael Turner's avatar
Michael Turner committed
66
    ProcessModules/ProcessExtrude.cpp
Michael Turner's avatar
Michael Turner committed
67
68
69
70
    ProcessModules/ProcessVarOpti/ProcessVarOpti.cpp
    ProcessModules/ProcessVarOpti/PreProcessing.cpp
    ProcessModules/ProcessVarOpti/NodeOpti.cpp
    ProcessModules/ProcessVarOpti/ElUtil.cpp
71
)
72

73
IF (NEKTAR_USE_CCM)
74
75
    SET(NekMeshHeaders ${NekMeshHeaders} InputModules/InputStar.h)
    SET(NekMeshSources ${NekMeshSources} InputModules/InputStar.cpp)
76
77
ENDIF (NEKTAR_USE_CCM)

Chris Cantwell's avatar
Chris Cantwell committed
78
IF (NEKTAR_USE_VTK)
79
80
    SET(NekMeshHeaders ${NekMeshHeaders} InputModules/InputVtk.h OutputModules/OutputVtk.h)
    SET(NekMeshSources ${NekMeshSources} InputModules/InputVtk.cpp OutputModules/OutputVtk.cpp)
Chris Cantwell's avatar
Chris Cantwell committed
81
82
ENDIF (NEKTAR_USE_VTK)

83
IF (NEKTAR_USE_MESHGEN)
84
    SET(NekMeshHeaders ${NekMeshHeaders}
85
            ProcessModules/ProcessVarOpti/NodeOptiCAD.h
Michael Turner's avatar
Michael Turner committed
86
            InputModules/InputMCF.h)
87
    SET(NekMeshSources ${NekMeshSources}
88
            ProcessModules/ProcessVarOpti/NodeOptiCAD.cpp
Michael Turner's avatar
Michael Turner committed
89
            InputModules/InputMCF.cpp)
90
ENDIF (NEKTAR_USE_MESHGEN)
Michael Turner's avatar
Michael Turner committed
91

92
93
94
95
# Don't use macro -- this way we can just link against NekMeshUtils and
# LocalRegions.
ADD_EXECUTABLE(NekMesh ${NekMeshSources})
SET_COMMON_PROPERTIES(NekMesh)
Michael Turner's avatar
fix    
Michael Turner committed
96
TARGET_LINK_LIBRARIES(NekMesh NekMeshUtils FieldUtils)
97
98
99
SET_PROPERTY(TARGET NekMesh PROPERTY FOLDER util)
INSTALL(TARGETS NekMesh
    RUNTIME DESTINATION ${NEKTAR_BIN_DIR} COMPONENT util)
100

101
IF (NEKTAR_USE_CCM)
Michael Turner's avatar
Michael Turner committed
102
   TARGET_LINK_LIBRARIES(NekMesh ${CCMIO_LIBRARIES})
103
104
ENDIF (NEKTAR_USE_CCM)

105
IF (NEKTAR_USE_VTK)
106
    IF (VTK_MAJOR_VERSION LESS 6)
107
        TARGET_LINK_LIBRARIES(NekMesh vtkCommon vtkIO vtkGraphics)
108
    ELSE ()
109
        TARGET_LINK_LIBRARIES(NekMesh vtkCommonCore vtkIOLegacy)
110
    ENDIF ()
111
ENDIF (NEKTAR_USE_VTK)
112

Dave Moxey's avatar
Dave Moxey committed
113
114
# Nektar++
ADD_NEKTAR_TEST        (Nektar++/InvalidTetFace)
115
ADD_NEKTAR_TEST        (Nektar++/InvalidQuads)
116
ADD_NEKTAR_TEST        (Nektar++/Tube45Refinement)
117
ADD_NEKTAR_TEST        (Nektar++/Tube45Refinement_extractsurf)
118
ADD_NEKTAR_TEST        (Nektar++/CylQuadBl)
Dave Moxey's avatar
Dave Moxey committed
119
120
121
# Gmsh tests
ADD_NEKTAR_TEST        (Gmsh/CubeAllElements)
ADD_NEKTAR_TEST        (Gmsh/CubeHex)
Dave Moxey's avatar
Dave Moxey committed
122
ADD_NEKTAR_TEST        (Gmsh/CubeHexLinear)
Dave Moxey's avatar
Dave Moxey committed
123
ADD_NEKTAR_TEST        (Gmsh/CubePrism)
Dave Moxey's avatar
Dave Moxey committed
124
ADD_NEKTAR_TEST        (Gmsh/CubePrismLinear)
Dave Moxey's avatar
Dave Moxey committed
125
ADD_NEKTAR_TEST        (Gmsh/CubeTet)
Dave Moxey's avatar
Dave Moxey committed
126
ADD_NEKTAR_TEST        (Gmsh/CubeTetLinear)
Dave Moxey's avatar
Dave Moxey committed
127
128
129
130
131
IF (WIN32)
    ADD_NEKTAR_TEST    (Gmsh/Scalar_Windows)
ELSE ()
    ADD_NEKTAR_TEST    (Gmsh/Scalar)
ENDIF ()
Dave Moxey's avatar
Dave Moxey committed
132
ADD_NEKTAR_TEST        (Gmsh/SquareQuad)
Dave Moxey's avatar
Dave Moxey committed
133
ADD_NEKTAR_TEST        (Gmsh/SquareQuadLinear)
Dave Moxey's avatar
Dave Moxey committed
134
ADD_NEKTAR_TEST        (Gmsh/SquareTri)
Dave Moxey's avatar
Dave Moxey committed
135
ADD_NEKTAR_TEST        (Gmsh/SquareTriLinear)
Dave Moxey's avatar
Dave Moxey committed
136
137
138
# Nektar tests
ADD_NEKTAR_TEST        (Nektar/HexLinear)
ADD_NEKTAR_TEST        (Nektar/Tube45)
Dave Moxey's avatar
Dave Moxey committed
139
ADD_NEKTAR_TEST        (Nektar/UKMesh)
140
141
142
# Nek5000 tests
ADD_NEKTAR_TEST        (Nek5000/3da)
ADD_NEKTAR_TEST        (Nek5000/r1854a)
Dave Moxey's avatar
Dave Moxey committed
143
144
145
# StarCCM tests
ADD_NEKTAR_TEST        (StarTec/CubePer)
ADD_NEKTAR_TEST_LENGTHY(StarTec/StraightRW)
146
147
148

# MeshGen test
IF(NEKTAR_USE_MESHGEN)
149
150
    ADD_NEKTAR_TEST        (MeshGen/cylinder)
    ADD_NEKTAR_TEST        (MeshGen/sphere)
Julian Marcon's avatar
Julian Marcon committed
151
152
    ADD_NEKTAR_TEST        (MeshGen/2d-cad)
    ADD_NEKTAR_TEST        (MeshGen/2d-naca)
Michael Turner's avatar
Michael Turner committed
153
    ADD_NEKTAR_TEST        (MeshGen/t106step)
Michael Turner's avatar
Michael Turner committed
154
    ADD_NEKTAR_TEST_LENGTHY       (MeshGen/rev)
155
ENDIF()
156
157
158

# varopti tests
ADD_NEKTAR_TEST_LENGTHY       (MeshGen/varopti_cubesphere)