CMakeLists-Project.txt 1.54 KB
Newer Older
1
#-----------------------------------------------------------------------------
2
# OpenFOAM blockMeshDict reader plugin for ParaView GUI (pre-5.7)
3

4 5
set(CMAKE_BUILD_TYPE Release)

6 7 8 9 10
link_directories(
    $ENV{FOAM_LIBBIN}
)

include_directories(
Mark Olesen's avatar
Mark Olesen committed
11
    ${LIB_SRC}/OpenFOAM/include
12 13 14
    ${LIB_SRC}/OpenFOAM/lnInclude
    ${LIB_SRC}/OSspecific/${WM_OSTYPE}/lnInclude
    ${LIB_SRC}/meshing/blockMesh/lnInclude
15
    ${PROJECT_SOURCE_DIR}/../common
16 17 18
    ${PROJECT_SOURCE_DIR}/library
    ${PROJECT_SOURCE_DIR}/plugin
    ${PROJECT_SOURCE_DIR}/plugin/reader
19 20
)

21
set(OPENFOAM_LIBNAMES
22 23 24 25 26 27
    OpenFOAM
    blockMesh
)

# Set output library destination to plugin directory
set(
Mark Olesen's avatar
Mark Olesen committed
28
    LIBRARY_OUTPUT_PATH $ENV{FOAM_PV_PLUGIN_LIBBIN}
29 30 31 32 33
    CACHE INTERNAL
    "Single output directory for building all libraries."
)


34
qt5_wrap_cpp(MOC_SRCS plugin/pqFoamBlockMeshControls.h)
35 36 37 38 39 40 41

add_paraview_property_group_widget(IFACES0 IFACES0_SRCS
    TYPE "openfoam_blockMesh_general_controls"
    CLASS_NAME pqFoamBlockMeshControls
)

add_paraview_plugin(
42
    PVblockMeshReader_SM "${foam_api}"
43 44 45 46
    SERVER_MANAGER_XML
        plugin/PVblockMeshReader_SM.xml
    SERVER_MANAGER_SOURCES
        plugin/reader/vtkPVblockMeshReader.cxx
47 48 49 50 51
    GUI_INTERFACES
        ${IFACES0}
    SOURCES
        ${IFACES0_SRCS}
        ${MOC_SRCS}
52
        plugin/pqFoamBlockMeshControls.cxx
53 54 55 56 57
)

target_link_libraries(
    PVblockMeshReader_SM
    LINK_PUBLIC
58
    vtkPVFoamCommon${foamPvLibQualifier}
59 60
    vtkPVblockMesh${foamPvLibQualifier}
    ${OPENFOAM_LIBNAMES}
61 62 63
)

#-----------------------------------------------------------------------------