diff options
author | Sebastien Barre <sebastien.barre@kitware.com> | 2002-08-08 17:41:50 (GMT) |
---|---|---|
committer | Sebastien Barre <sebastien.barre@kitware.com> | 2002-08-08 17:41:50 (GMT) |
commit | 930bed0f71079cfd2f71698d16947a3303144a9f (patch) | |
tree | 9b66293a9e0596d6b99fc6db470b9b7c7bbfad7f /Modules/FindwxWindows.cmake | |
parent | 48c130992b281d863ee123ca4d4bf040665b19b5 (diff) | |
download | CMake-930bed0f71079cfd2f71698d16947a3303144a9f.zip CMake-930bed0f71079cfd2f71698d16947a3303144a9f.tar.gz CMake-930bed0f71079cfd2f71698d16947a3303144a9f.tar.bz2 |
ENH: first stab at wxWindows support (win32)
Diffstat (limited to 'Modules/FindwxWindows.cmake')
-rw-r--r-- | Modules/FindwxWindows.cmake | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Modules/FindwxWindows.cmake b/Modules/FindwxWindows.cmake new file mode 100644 index 0000000..b01e9e4 --- /dev/null +++ b/Modules/FindwxWindows.cmake @@ -0,0 +1,39 @@ +# +# This module finds if wxWindows is installed and determines where the +# include files and libraries are. It also determines what the name of +# the library is. This code sets the following variables: +# +# WXWINDOWS_STATIC_LIBRARY = full path to the wxWindows static library +# WXWINDOWS_SHARED_LIBRARY = full path to the wxWindows shared import library +# WXWINDOWS_INCLUDE_PATH = path to wx.h + +SET (WXWINDOWS_POSSIBLE_LIB_PATHS + "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWindows_is1;Inno Setup: App Path]/lib" + $ENV{WXWIN}/lib +) + +FIND_LIBRARY(WXWINDOWS_STATIC_LIBRARY + NAMES wx + PATHS ${WXWINDOWS_POSSIBLE_LIB_PATHS} +) + +FIND_LIBRARY(WXWINDOWS_SHARED_LIBRARY + NAMES wx23_2 wx22_9 + PATHS ${WXWINDOWS_POSSIBLE_LIB_PATHS} +) + +SET (WXWINDOWS_POSSIBLE_INCLUDE_PATHS + "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\wxWindows_is1;Inno Setup: App Path]/include/wx" + $ENV{WXWIN}/include/wx +) + +FIND_PATH(WXWINDOWS_INCLUDE_PATH + wx.h + ${WXWINDOWS_POSSIBLE_INCLUDE_PATHS} +) + +MARK_AS_ADVANCED( + WXWINDOWS_STATIC_LIBRARY + WXWINDOWS_SHARED_LIBRARY + WXWINDOWS_INCLUDE_PATH +) |