I have been reading about packaging application that link against VTK talking about RPATH and such.
Some of the article I read is a couple of years old and I am wondering with the recent updates and module-rization of VTK if there are newer write up on that front.
At the moment, I need to set LD_LIBRARY_PATH to run my application because not all the dependencies are found
[100%] Linking CXX executable FilterExample
[100%] Built target FilterExample
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/stuff/bin/FilterExample
nyue@head0:~/projects/vii/build/graphics/vtk$ ldd /tmp/stuff/bin/FilterExample
linux-vdso.so.1 (0x00007fff398ba000)
libvtkCommonExecutionModel-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonExecutionModel-9.0.so.1 (0x00007f6c05282000)
libvtkCommonDataModel-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonDataModel-9.0.so.1 (0x00007f6c04c48000)
libvtkCommonCore-9.0.so.1 => /home/nyue/systems/VTK/9.0.3/lib/libvtkCommonCore-9.0.so.1 (0x00007f6c045e4000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f6c0425b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f6c04043000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f6c03c52000)
libvtkCommonMisc-9.0.so.1 => not found
libvtksys-9.0.so.1 => not found
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f6c038b4000)
libvtkCommonTransforms-9.0.so.1 => not found
libvtkCommonMisc-9.0.so.1 => not found
libvtkCommonSystem-9.0.so.1 => not found
libvtkCommonMath-9.0.so.1 => not found
libvtksys-9.0.so.1 => not found
libvtksys-9.0.so.1 => not found
libvtkloguru-9.0.so.1 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f6c03695000)
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f6c03466000)
/lib64/ld-linux-x86-64.so.2 (0x00007f6c05743000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f6c03262000)