ParaView and CoProcessing CMake packages should be loaded together
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
When loading linking to the CoProcessing library, you have to independently find the ParaView and CoProessing packages and hope the user picked the builds that go together. This is pretty stupid, especially since the coprocessing library is now embedded in the ParaView source. Instead, you should only have to load in one or the other. At least one of the following two should be implemented.
-
In ParaViewConfig.cmake, there should be an entry for PARAVIEW_ENABLE_COPROCESSING and the ParaView use file should automatically find the CoProcessingConfig.cmake file and run the CoProcessing use file.
-
In CoProcessingConfig.cmake, there should be an entry for ParaView_DIR and the CoProcessing use file should automatically find the ParaViewConfig.cmake file and run the ParaView use file.
Of these two options, I like the 1st one better. It is easier to find the ParaViewConfig.cmake than the CoProcessingConfig.cmake file (which is hidden in a subdirectory). I also feel that the CoProcessing library should be considered "part" of ParaView and should be loaded with it.