DvtkRenderingCore_AUTOINIT="1(vtkRenderingOpenGL)" Every file in vtkSuperDuper will be compiled with As an example, say we have added vtkRenderingOpenGL as a dependency to a new module named vtkSuperDuper. When you add an implementation module to the DEPENDS, COMPILE_DEPENDS, or TEST_DEPENDS section of a CMake vtk_module() call inside a module.cmake file, CMake adds a compiler definition to the compiler command line for all the files in the module (or, for TEST_DEPENDS, to the files in the test harness). How Implementation Modules Are Initialized A simple CMakeLists.txt to accomplish this and build an application would be:Īdd_executable(myApplication application.cxx) The NO_MODULE argument in the find_package call is there simply to avoid using the FindVTK.cmake file which has not been necessary since VTK 5.x and is certainly not desired for VTK 6. If you just want to find VTK and link to everything that was built not too much has changed. If you are building against VTK 6.0 a few things have changed as a result of the modularization and updates to the CMake infrastructure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |