Creating a Binary File Plugin/ Cmake uncessfully

Hello all,

I am currently attempting to build my own ParaView plugin by following ParaView/Plugin HowTo.

Some info of my OS and Plugin :
OS: MacOS Ventura 13
Chip: Apple M1
Paraview version: 5.11.01

Plugin file tree

  1. I built ParaView from source. The first problem I met is, when I ran command cmake .. in the directory build I received the following message:
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!

As far as I know , this problem happens when CMake cannot find the ParaView package configuration file. However, I did built Paraview and set ParavView_DIR (I also installed ParaView with brew install command in Mac). It still failed.

Does anyone have idea how I could solve this problem?

using cmake, ccmake or cmake-gui to set user variable, do not set it in the CMakeLists.txt, and you should point to the right directory containing ParaViewConfig.cmake

eg:

cmake -DParaView_DIR="/opt/homebrew/lib/cmake/paraview" ../