FindWish.cmake 807 B

1234567891011121314151617181920212223242526
  1. # - Find wish installation
  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 path to the wish executable
  7. #
  8. # if UNIX is defined, then it will 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)