What should be included in CMakeLists.txt to start a VMTK C++ project?

Hi,

I am trying to implement VMTK functions in my C++ code. I am able to run my program using both ITK and VTK libraries, however I cannot access VMTK libraries. I’ve already built VMTK, and I’m tweaking my CMakeLists.txt file in the project folder. When recompiling, it either ignores VMTK or produces this problem. Any help on how to write my CMakeLists.txt file to compile correctly would be greatly appreciated. Thank you!

-Frank

You would normally use ExternalProject infrastructure of CMake to build dependencies, such as VMTK. You can find an example here: GitHub - vmtk/SlicerExtension-VMTK