CMakeLists.txt 4.89 KB
Newer Older
1 2 3
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(ExternalSurface)

4 5
INCLUDE(${VISIT_SOURCE_DIR}/CMake/PluginMacros.cmake)

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
SET(COMMON_SOURCES
ExternalSurfacePluginInfo.C
ExternalSurfaceCommonPluginInfo.C
ExternalSurfaceAttributes.C
)

SET(LIBI_SOURCES 
ExternalSurfacePluginInfo.C
)

SET(LIBG_SOURCES
ExternalSurfaceGUIPluginInfo.C
QvisExternalSurfaceWindow.C
${COMMON_SOURCES}
)
SET(LIBG_MOC_SOURCES
QvisExternalSurfaceWindow.h
)

SET(LIBV_SOURCES
ExternalSurfaceViewerPluginInfo.C
${COMMON_SOURCES}
)

SET(LIBE_SOURCES
ExternalSurfaceEnginePluginInfo.C
avtExternalSurfaceFilter.C
${COMMON_SOURCES}
)

36 37 38 39 40

IF(VISIT_PYTHON_SCRIPTING)
    SET(PYINCLUDES ${PYTHON_INCLUDE_PATH} ${VISIT_INCLUDE_DIR}/visitpy/visitpy)
ENDIF(VISIT_PYTHON_SCRIPTING)

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${VISIT_COMMON_INCLUDES}
${VISIT_INCLUDE_DIR}/avt/DBAtts/MetaData
${VISIT_INCLUDE_DIR}/avt/DBAtts/SIL
${VISIT_INCLUDE_DIR}/avt/Database/Database
${VISIT_INCLUDE_DIR}/avt/Expressions/Abstract
${VISIT_INCLUDE_DIR}/avt/Expressions/CMFE
${VISIT_INCLUDE_DIR}/avt/Expressions/Conditional
${VISIT_INCLUDE_DIR}/avt/Expressions/Derivations
${VISIT_INCLUDE_DIR}/avt/Expressions/General
${VISIT_INCLUDE_DIR}/avt/Expressions/ImageProcessing
${VISIT_INCLUDE_DIR}/avt/Expressions/Management
${VISIT_INCLUDE_DIR}/avt/Expressions/Math
${VISIT_INCLUDE_DIR}/avt/Expressions/MeshQuality
56
${VISIT_INCLUDE_DIR}/avt/Expressions/TimeIterators
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
${VISIT_INCLUDE_DIR}/avt/FileWriter
${VISIT_INCLUDE_DIR}/avt/Filters
${VISIT_INCLUDE_DIR}/avt/IVP
${VISIT_INCLUDE_DIR}/avt/Math
${VISIT_INCLUDE_DIR}/avt/Pipeline/AbstractFilters
${VISIT_INCLUDE_DIR}/avt/Pipeline/Data
${VISIT_INCLUDE_DIR}/avt/Pipeline/Pipeline
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sinks
${VISIT_INCLUDE_DIR}/avt/Pipeline/Sources
${VISIT_INCLUDE_DIR}/avt/Plotter
${VISIT_INCLUDE_DIR}/avt/QtVisWindow
${VISIT_INCLUDE_DIR}/avt/View
${VISIT_INCLUDE_DIR}/avt/VisWindow/Colleagues
${VISIT_INCLUDE_DIR}/avt/VisWindow/Interactors
${VISIT_INCLUDE_DIR}/avt/VisWindow/Proxies
${VISIT_INCLUDE_DIR}/avt/VisWindow/Tools
${VISIT_INCLUDE_DIR}/avt/VisWindow/VisWindow
${VISIT_INCLUDE_DIR}/gui
${VISIT_INCLUDE_DIR}/mdserver/proxy
${VISIT_INCLUDE_DIR}/mdserver/rpc
${VISIT_INCLUDE_DIR}/viewer/main
${VISIT_INCLUDE_DIR}/viewer/proxy
${VISIT_INCLUDE_DIR}/viewer/rpc
${VISIT_INCLUDE_DIR}/winutil
${VISIT_INCLUDE_DIR}/visit_vtk/full
${VISIT_INCLUDE_DIR}/visit_vtk/lightweight
${QT_INCLUDE_DIR}
${QT_QTCORE_INCLUDE_DIR}
${QT_QTGUI_INCLUDE_DIR}
${VTK_INCLUDE_DIRS} 
87
${PYINCLUDES}
88 89 90
)


91
LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${QT_LIBRARY_DIR} ${GLEW_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} )
92 93 94 95 96 97

ADD_LIBRARY(IExternalSurfaceOperator ${LIBI_SOURCES})
TARGET_LINK_LIBRARIES(IExternalSurfaceOperator visitcommon)
SET(INSTALLTARGETS IExternalSurfaceOperator)

IF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
98
    QT_WRAP_CPP(GExternalSurfaceOperator LIBG_SOURCES ${LIBG_MOC_SOURCES})
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
    ADD_LIBRARY(GExternalSurfaceOperator ${LIBG_SOURCES})
    TARGET_LINK_LIBRARIES(GExternalSurfaceOperator visitcommon gui )

    ADD_LIBRARY(VExternalSurfaceOperator ${LIBV_SOURCES})
    TARGET_LINK_LIBRARIES(VExternalSurfaceOperator visitcommon viewer )
    SET(INSTALLTARGETS ${INSTALLTARGETS} GExternalSurfaceOperator VExternalSurfaceOperator)

    IF(VISIT_PYTHON_SCRIPTING)
        SET(LIBS_SOURCES
            ExternalSurfaceScriptingPluginInfo.C
            PyExternalSurfaceAttributes.C
            ${COMMON_SOURCES}
        )
        ADD_LIBRARY(SExternalSurfaceOperator ${LIBS_SOURCES})
        TARGET_LINK_LIBRARIES(SExternalSurfaceOperator visitcommon visitpy ${PYTHON_LIBRARY})
        SET(INSTALLTARGETS ${INSTALLTARGETS} SExternalSurfaceOperator)
    ENDIF(VISIT_PYTHON_SCRIPTING)

    IF(VISIT_JAVA)
118 119 120 121
        FILE(COPY ExternalSurfaceAttributes.java DESTINATION ${JavaClient_BINARY_DIR}/src/operators)
        ADD_CUSTOM_TARGET(JavaExternalSurface ALL ${Java_JAVAC_EXECUTABLE} ${VISIT_Java_FLAGS} -d ${JavaClient_BINARY_DIR} -classpath ${JavaClient_BINARY_DIR} -sourcepath ${JavaClient_BINARY_DIR} ExternalSurfaceAttributes.java
            DEPENDS JavaClient
            WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
122 123 124 125 126 127 128 129 130 131 132 133 134 135
    ENDIF(VISIT_JAVA)
ENDIF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)

ADD_LIBRARY(EExternalSurfaceOperator_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EExternalSurfaceOperator_ser visitcommon avtexpressions_ser avtfilters_ser avtpipeline_ser )
SET(INSTALLTARGETS ${INSTALLTARGETS} EExternalSurfaceOperator_ser)

IF(VISIT_PARALLEL)
    ADD_PARALLEL_LIBRARY(EExternalSurfaceOperator_par ${LIBE_SOURCES})
    TARGET_LINK_LIBRARIES(EExternalSurfaceOperator_par visitcommon avtexpressions_par avtfilters_par avtpipeline_par )
    SET(INSTALLTARGETS ${INSTALLTARGETS} EExternalSurfaceOperator_par)
ENDIF(VISIT_PARALLEL)

VISIT_INSTALL_OPERATOR_PLUGINS(${INSTALLTARGETS})
136
VISIT_PLUGIN_TARGET_RTOD(operators ${INSTALLTARGETS})
137
VISIT_PLUGIN_TARGET_FOLDER(operators ExternalSurface ${INSTALLTARGETS})
138