FindWish.cmake 803 B

123456789101112131415161718192021222324252627
  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. # TK_WISH = the full path to the wish binary (wish wish80 etc)
  7. #
  8. # if UNIX is defined, then look for the cygwin version first
  9. IF(UNIX)
  10. FIND_PROGRAM(TK_WISH cygwish80 )
  11. ENDIF(UNIX)
  12. FIND_PROGRAM(TK_WISH
  13. NAMES wish wish84 wish8.4 wish83 wish8.3 wish82 wish8.2 wish80
  14. PATHS
  15. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.4;Root]/bin
  16. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.3;Root]/bin
  17. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.2;Root]/bin
  18. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Scriptics\\Tcl\\8.0;Root]/bin
  19. )
  20. IF (WIN32)
  21. MARK_AS_ADVANCED(
  22. TK_WISH
  23. )
  24. ENDIF(WIN32)