[Cmake] SOURCE_FILES_REMOVE
John Biddiscombe
jbiddiscombe at skippingmouse.co.uk
Sun Jun 24 09:45:45 EDT 2001
>now for the new vtk tree : If you find some time, could you please send me
>your LocalUserOptions.cmake files, so that I can test them too ? (and see
>how I can build a lightweight VTK).
>BTW, I think the INCLUDE (LocalUserOptions.cmake OPTIONAL) should be at
>the very end of the CMakeLists.txt so that it can override the while file,
>don't you think so ?
Unfortunately, owing to the way that the WRAP_TCL etc commands have been
implemented, you can't remove a source file after the wrapper command has
executed (tcl link error). I put the INCLUDE before the WRAPPER commands
because one needs to remove them first.
Here's my vtknew IO localuseroptions.cmake file (I'm still tweaking the others)
# remove these from the source list
SOURCE_FILES_REMOVE ( IO_SRCS
vtkEnSight6BinaryReader
vtkEnSight6Reader
vtkEnSightGoldBinaryReader
vtkEnSightGoldReader
vtkEnSightReader
vtkGenericEnSightReader
vtkBYUReader
vtkBYUWriter
vtkOBJReader
vtkSLCReader
vtkSTLReader
vtkSTLWriter
vtkUGFacetReader
)
IF (VTK_WRAP_GUI)
INCLUDE (GUIWrapping.cmake)
VTK_WRAP_GUI(vtkCommonGUI CommonGUI_SRCS Common_SRCS)
ADD_LIBRARY(vtkCommonGUI CommonGUI_SRCS )
TARGET_LINK_LIBRARIES (vtkCommonGUI vcl50 BvtkComponents BvtkParam)
ENDIF (VTK_WRAP_GUI)
you can experimant with adding this sort of thing (I tried already...) but
it wont work "after the fact"
WRAP_EXCLUDE_FILES (
vtkEnSight6BinaryReader
vtkEnSight6Reader
vtkEnSightGoldBinaryReader
vtkEnSightGoldReader
vtkEnSightReader
vtkGenericEnSightReader
vtkBYUReader
vtkBYUWriter
vtkOBJReader
vtkSLCReader
vtkSTLReader
vtkSTLWriter
vtkUGFacetReader
)
More information about the CMake
mailing list