[Paraview] Compile Error with Custom Plugin for ParaView CVS
Mike Jackson
imikejackson at gmail.com
Fri Feb 22 13:15:56 EST 2008
That seems to have done the trick. At least it built..
--
Mike Jackson Senior Research Engineer
Innovative Management & Technology Services
On Feb 22, 2008, at 12:42 PM, clinton at elemtech.com wrote:
>
>
> Try adding a
> INCLUDE(${ParaView_BINARY_DIR}/ParaViewConfig.cmake
> near the top.
> There are some variables defined in there that some of the plugin
> macros need,
> which normally happens if you build your plugin outside the
> paraview tree.
> In this case it adds the include path to the Qt/Components directory.
>
> Clint
>
> On Friday 22 February 2008 10:16:34 am Mike Jackson wrote:
>> Hate to say it, but it was already in there.
>>
>> Here is my CMakeLists.txt for my Client Plugin.
>>
>> # create a plugin that implements an object panel for a source proxy
>> CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
>>
>> PROJECT(RoboMetClientPlugin)
>>
>> FIND_PACKAGE(Qt4)
>> IF(QT4_FOUND)
>>
>> INCLUDE(${QT_USE_FILE})
>>
>> INCLUDE_DIRECTORIES(
>> ${VTK_INCLUDE_DIR}
>> ${PARAVIEW_INCLUDE_DIRS}
>> ${ParaView_SOURCE_DIR}/VTK/GUISupport/Qt
>> ${pqComponents_SOURCE_DIR}
>> ${pqComponents_BINARY_DIR}
>> ${pqCore_SOURCE_DIR}
>> ${pqCore_BINARY_DIR}
>> ${QtWidgets_SOURCE_DIR}
>> ${QtWidgets_BINARY_DIR}
>> ${QtChart_SOURCE_DIR}
>> ${QtChart_BINARY_DIR}
>> ${QtTesting_SOURCE_DIR}
>> ${QtTesting_BINARY_DIR}
>> ${QtPython_SOURCE_DIR}
>> ${QtPython_BINARY_DIR}
>> ${ParaView_SOURCE_DIR}/Utilities/VTKClientServer
>> ${ParaView_BINARY_DIR}/Utilities/VTKClientServer
>> )
>>
>> # Reduce the number of dirs that get included on moc command line
>> # since it causes issues on Windows 2000.
>> SET(MOC_INCLUDE_DIRS ${MOC_INCLUDE_DIRS} $
>> {QT_QTDESIGNER_INCLUDE_DIR})
>> GET_DIRECTORY_PROPERTY(include_dirs_tmp INCLUDE_DIRECTORIES)
>> SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "$
>> {MOC_INCLUDE_DIRS}")
>>
>> QT4_WRAP_CPP(MOC_SRCS pqH5RoboMetReaderPanel.h)
>>
>> SET(UI_RESOURCES
>> Resources/pqH5RoboMetReaderPanel.qrc
>> )
>>
>> QT4_ADD_RESOURCES(RCS_SOURCES
>> ${UI_RESOURCES}
>> )
>>
>> SET_DIRECTORY_PROPERTIES(PROPERTIES INCLUDE_DIRECTORIES "$
>> {include_dirs_tmp}")
>>
>> SOURCE_GROUP("Resources" FILES
>> ${UI_RESOURCES}
>> )
>>
>> SOURCE_GROUP("Generated" FILES
>> ${RCS_SOURCES}
>> )
>>
>> ADD_PARAVIEW_OBJECT_PANEL(IFACES IFACE_SRCS CLASS_NAME
>> pqH5RoboMetReaderPanel
>> XML_NAME H5RoboMetReader XML_GROUP sources)
>>
>>
>> # create a plugin for this panel
>> ADD_PARAVIEW_PLUGIN(H5RoboMetReaderPanelPlugin "1.0"
>> GUI_INTERFACES ${IFACES}
>> SOURCES pqH5RoboMetReaderPanel.cpp ${MOC_SRCS} $
>> {RCS_SOURCES} ${IFACE_SRCS})
>>
>>
>> ENDIF(QT4_FOUND)
>
>
More information about the ParaView
mailing list