Issue linking the library in cmake
Hi,
I'm trying to add vespa to one of my existing projects. My project has already had a VTK reference. When building as submodule using add_subdirectory(vespa)
gives me following error:
[cmake] CMake Error at /Users/jileihao/tk/vtk/installed/lib/cmake/vtk-9.2/vtkModule.cmake:2442 (message):
[cmake] A set of modules have already been built using the `avrspt-converter`
[cmake] package.
[cmake] Call Stack (most recent call first):
[cmake] vespa/CMakeLists.txt:74 (vtk_module_build)
Then I tried reference it using `find_package(vespa REQUIRED). It gives following error:
[cmake] CMake Error at /Users/jileihao/tk/vespa/installed/lib/cmake/vespa/vespa-config.cmake:29 (find_dependency):
[cmake] Unknown CMake command "find_dependency".
[cmake] Call Stack (most recent call first):
[cmake] CMakeLists.txt:9 (find_package)
[cmake]
[cmake]
[cmake] Not searching for unused variables given on the command line.
Did I miss anything during the configuration? Is there any example project using cmake to reference the project?
Thanks! Jilei