I’m researching making a Qt-based desktop application to use Paraview framework and make a simpler ParaView GUI. The documentation says that there are some examples here
Then, choose one of the subfolder you points out: there all are independent examples. Build it in a new build directory. You will need to specify the path to the ParaView build directory in CMake with ParaView_DIR .
I’m a little lost here.
I have the fallowing structure
dev
|- pv
| |- build
| |- paraview-superbuild
|
|
|- qt-examples
|- one
|- build
|- Clone1
i tried adding set(ParaView_DIR /Users/username/Desktop/dev/pv/build) at the beggining of CMakeLists.txt of Clone1 and then I executeed cmake ../Clone1 from the build folder.
And got
As you use the Superbuild, ParaView_DIR must point to your install directory. By default, it is in build and in your case (if you did not specify another install directory), it should be something like /Users/username/Desktop/dev/pv/build/install
Also note that modifying CMakeLists.txt is not the prefered way to set options. On command line, add -DParaView_DIR=/Users/username/Desktop/dev/pv/build/install
Indeed, you need this option. But it is an option of the ParaView project and not the Superbuild on.
In the superbuild, the variable you are looking for is ENABLE_qt5. By the way, take a look at each ENABLE_XXXX variables, they mostly are to OFF. But you may want to activate python or some other.