CMakeLists.txt 5.71 KB
Newer Older
pugmire's avatar
pugmire committed
1 2 3 4 5 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
# DO NOT EDIT THIS FILE! THIS FILE IS AUTOMATICALLY GENERATED BY xml2cmake
PROJECT(ExtremeValueAnalysis)

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

SET(COMMON_SOURCES
ExtremeValueAnalysisPluginInfo.C
ExtremeValueAnalysisCommonPluginInfo.C
ExtremeValueAnalysisAttributes.C
)

SET(LIBI_SOURCES 
ExtremeValueAnalysisPluginInfo.C
)

SET(LIBG_SOURCES
ExtremeValueAnalysisGUIPluginInfo.C
QvisExtremeValueAnalysisWindow.C
${COMMON_SOURCES}
)
SET(LIBG_MOC_SOURCES
QvisExtremeValueAnalysisWindow.h
)

SET(LIBV_SOURCES
ExtremeValueAnalysisViewerPluginInfo.C
${COMMON_SOURCES}
)

SET(LIBE_SOURCES
ExtremeValueAnalysisEnginePluginInfo.C
avtExtremeValueAnalysisFilter.C
33
avtRExtremesFilter.C
pugmire's avatar
pugmire committed
34
FileWriter.C
pugmire's avatar
pugmire committed
35 36 37
${COMMON_SOURCES}
)

bonnell's avatar
bonnell committed
38

39 40 41 42
IF(VISIT_PYTHON_SCRIPTING)
    SET(PYINCLUDES ${PYTHON_INCLUDE_PATH} ${VISIT_INCLUDE_DIR}/visitpy/visitpy)
ENDIF(VISIT_PYTHON_SCRIPTING)

pugmire's avatar
pugmire committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 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 87 88
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
${VISIT_INCLUDE_DIR}/avt/Expressions/TimeIterators
${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} 
bonnell's avatar
bonnell committed
89 90 91
${PYINCLUDES}
)

pugmire's avatar
pugmire committed
92
IF(HAVE_LIBNETCDF)
bonnell's avatar
bonnell committed
93
    INCLUDE_DIRECTORIES(${NETCDF_INCLUDE_DIR})
pugmire's avatar
pugmire committed
94
ENDIF(HAVE_LIBNETCDF)
pugmire's avatar
pugmire committed
95

pugmire's avatar
pugmire committed
96
IF(HAVE_LIBNETCDF)
bonnell's avatar
bonnell committed
97
    ADD_DEFINITIONS(-DHAVE_NETCDF)
pugmire's avatar
pugmire committed
98
ENDIF(HAVE_LIBNETCDF)
pugmire's avatar
pugmire committed
99

bonnell's avatar
bonnell committed
100 101 102 103 104
IF(HAVE_LIBNETCDF)
    LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${QT_LIBRARY_DIR} ${GLEW_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} ${NETCDF_LIBRARY_DIR})
ELSE(HAVE_LIBNETCDF)
    LINK_DIRECTORIES(${VISIT_LIBRARY_DIR} ${QT_LIBRARY_DIR} ${GLEW_LIBRARY_DIR} ${VTK_LIBRARY_DIRS} )
ENDIF(HAVE_LIBNETCDF)
pugmire's avatar
pugmire committed
105 106 107 108 109 110

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

IF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)
111
    QT_WRAP_CPP(GExtremeValueAnalysisOperator LIBG_SOURCES ${LIBG_MOC_SOURCES})
pugmire's avatar
pugmire committed
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
    ADD_LIBRARY(GExtremeValueAnalysisOperator ${LIBG_SOURCES})
    TARGET_LINK_LIBRARIES(GExtremeValueAnalysisOperator visitcommon gui )

    ADD_LIBRARY(VExtremeValueAnalysisOperator ${LIBV_SOURCES})
    TARGET_LINK_LIBRARIES(VExtremeValueAnalysisOperator visitcommon viewer )
    SET(INSTALLTARGETS ${INSTALLTARGETS} GExtremeValueAnalysisOperator VExtremeValueAnalysisOperator)

    IF(VISIT_PYTHON_SCRIPTING)
        SET(LIBS_SOURCES
            ExtremeValueAnalysisScriptingPluginInfo.C
            PyExtremeValueAnalysisAttributes.C
            ${COMMON_SOURCES}
        )
        ADD_LIBRARY(SExtremeValueAnalysisOperator ${LIBS_SOURCES})
        TARGET_LINK_LIBRARIES(SExtremeValueAnalysisOperator visitcommon visitpy ${PYTHON_LIBRARY})
        SET(INSTALLTARGETS ${INSTALLTARGETS} SExtremeValueAnalysisOperator)
    ENDIF(VISIT_PYTHON_SCRIPTING)

    IF(VISIT_JAVA)
131 132 133 134
        FILE(COPY ExtremeValueAnalysisAttributes.java DESTINATION ${JavaClient_BINARY_DIR}/src/operators)
        ADD_CUSTOM_TARGET(JavaExtremeValueAnalysis ALL ${Java_JAVAC_EXECUTABLE} ${VISIT_Java_FLAGS} -d ${JavaClient_BINARY_DIR} -classpath ${JavaClient_BINARY_DIR} -sourcepath ${JavaClient_BINARY_DIR} ExtremeValueAnalysisAttributes.java
            DEPENDS JavaClient
            WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
pugmire's avatar
pugmire committed
135 136 137 138 139
    ENDIF(VISIT_JAVA)
ENDIF(NOT VISIT_SERVER_COMPONENTS_ONLY AND NOT VISIT_ENGINE_ONLY AND NOT VISIT_DBIO_ONLY)

ADD_LIBRARY(EExtremeValueAnalysisOperator_ser ${LIBE_SOURCES})
TARGET_LINK_LIBRARIES(EExtremeValueAnalysisOperator_ser visitcommon avtexpressions_ser avtfilters_ser avtpipeline_ser )
bonnell's avatar
bonnell committed
140 141 142
IF(HAVE_LIBNETCDF)
    TARGET_LINK_LIBRARIES(EExtremeValueAnalysisOperator_ser ${NETCDF_LIB})
ENDIF(HAVE_LIBNETCDF)
pugmire's avatar
pugmire committed
143 144 145 146 147
SET(INSTALLTARGETS ${INSTALLTARGETS} EExtremeValueAnalysisOperator_ser)

IF(VISIT_PARALLEL)
    ADD_PARALLEL_LIBRARY(EExtremeValueAnalysisOperator_par ${LIBE_SOURCES})
    TARGET_LINK_LIBRARIES(EExtremeValueAnalysisOperator_par visitcommon avtexpressions_par avtfilters_par avtpipeline_par )
bonnell's avatar
bonnell committed
148 149 150
    IF(HAVE_LIBNETCDF)
        TARGET_LINK_LIBRARIES(EExtremeValueAnalysisOperator_par ${NETCDF_LIB})
    ENDIF(HAVE_LIBNETCDF)
pugmire's avatar
pugmire committed
151 152 153 154 155 156 157
    SET(INSTALLTARGETS ${INSTALLTARGETS} EExtremeValueAnalysisOperator_par)
ENDIF(VISIT_PARALLEL)

VISIT_INSTALL_OPERATOR_PLUGINS(${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_RTOD(operators ${INSTALLTARGETS})
VISIT_PLUGIN_TARGET_FOLDER(operators ExtremeValueAnalysis ${INSTALLTARGETS})

158
ADD_SUBDIRECTORY(r_src)
bonnell's avatar
bonnell committed
159