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
https://gitlab.kitware.com/paraview/paraview/tree/master/Examples/CustomApplications
In ParaView forum I read this
First, you need to build ParaView.
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 build ParaView but I don't undestand this part You will need to specify the path to the ParaView build directory in CMake with ParaView_DIR.
Here is my structure
dev
|- pv
| |- build
| |- paraview-superbuild
|
|
|- qt-examples
|- one
|- build
|- Clone1
How do I add the path?
I tried adding set(ParaView_DIR /Users/username/Desktop/dev/pv/build)
at the beginning of CMakeLists.txt
of Clone1 and then I executed cmake ../Clone1
from the build folder.
But got the error
CMake Error at CMakeLists.txt:6 (find_package):
By not providing "FindParaView.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ParaView",
but CMake did not find one.
Could not find a package configuration file provided by "ParaView" with any
of the following names:
ParaViewConfig.cmake
paraview-config.cmake
Add the installation prefix of "ParaView" to CMAKE_PREFIX_PATH or set
"ParaView_DIR" to a directory containing one of the above files. If
"ParaView" provides a separate development package or SDK, be sure it has
been installed.
-- Configuring incomplete, errors occurred!
What do I need to do?