查找CABLE¶
查找电缆
该模块查找是否安装了 CABLE 并确定包含文件和库的位置。此代码设置以下变量:
CABLE the path to the cable executable
CABLE_TCL_LIBRARY the path to the Tcl wrapper library
CABLE_INCLUDE_DIR the path to the include directory
要构建 Tcl 包装器,您应该添加共享库并将其链接到 ${CABLE_TCL_LIBRARY}。您还应该添加 ${CABLE_INCLUDE_DIR} 作为包含目录。