FindTCL.cmake 1012 B

1234567891011121314151617181920212223
  1. #
  2. # This module finds if TCL is installed and determines where the
  3. # include files and libraries are. It also determines what the name of
  4. # the library is. This code sets the following variables:
  5. #
  6. # TCL_LIBRARY = the full path to the tcl library found (tcl tcl80 etc)
  7. # TCL_INCLUDE_PATH = the path to where tcl.h can be found
  8. # TK_LIBRARY = the full path to the tk library found (tk tk80 etc)
  9. # TK_INCLUDE_PATH = the path to where tk.h can be found
  10. #
  11. # try to find the Tcl libraries in a few places and names
  12. FIND_LIBRARY(TCL_LIBRARY
  13. NAMES tcl tcl82 tcl80
  14. PATHS /usr/lib "C:/Program Files/Tcl/lib" /usr/local/lib)
  15. FIND_LIBRARY(TK_LIBRARY
  16. NAMES tk tk82 tk80
  17. PATHS /usr/lib "C:/Program Files/Tcl/lib" /usr/local/lib)
  18. # add in the include path
  19. FIND_PATH(TCL_INCLUDE_PATH tcl.h "C:/Program Files/Tcl/include" /usr/include /usr/local/include)
  20. FIND_PATH(TK_INCLUDE_PATH tk.h "C:/Program Files/Tcl/include" /usr/include /usr/local/include)