FindCABLE — CMake 4.4.0 Documentation

# FindCABLE

Changed in version 4.1: This module is available only if policy `CMP0191` is not set to `NEW`.

Finds the CABLE installation and determines its include paths and libraries:

    find_package(CABLE [...])

Package called CABLE (CABLE Automates Bindings for Language Extension) was initially developed by Kitware to generate bindings to C++ classes for use in interpreted languages, such as Tcl. It worked in conjunction with packages like GCC-XML. The CABLE package has since been superseded by the ITK CableSwig package.

Note

When building wrappers for interpreted languages, these packages are no longer necessary. The CastXML package now serves as the recommended tool for this purpose and can be found directly using the `find_program()` command.

## Cache Variables

The following cache variables may also be set:

`CABLE`

  Path to the `cable` executable.

`CABLE_INCLUDE_DIR`

  Path to the include directory.

`CABLE_TCL_LIBRARY`

  Path to the Tcl wrapper library.

## Examples

Finding CABLE to build Tcl wrapper, by linking library and adding the include directories:

    find_package(CABLE)
    target_link_libraries(tcl_wrapper_target PRIVATE ${CABLE_TCL_LIBRARY})
    target_include_directories(tcl_wrapper_target PRIVATE ${CABLE_INCLUDE_DIR})