diff options
author | Jörg Mayer <jmayer@loplof.de> | 2013-09-23 21:45:55 +0000 |
---|---|---|
committer | Jörg Mayer <jmayer@loplof.de> | 2013-09-23 21:45:55 +0000 |
commit | d456079b7e928007d4130ffb4ab5ccf49c98481e (patch) | |
tree | dba40805065d07057c21b5b77dbb76ec1419bd05 /cmake/modules/FindSMI.cmake | |
parent | d74564d6cf9d5e5d5927b51d31220db1c51409e7 (diff) |
Beginnings of win cmake support (not yet working), created by Graham Bloice,
some smaller changes by me.
- README.cmake
Document how to (one day) run on Windows
- CMakeLists.txt
Use MSVC compiler flags for MSVC instead of gcc flags
- FindWSWinLibs.cmake
New: Creates HINTS for finding includes and libraries
inside the Wireshark support library installation.
- FindXXX.cmake
Make use of HINTS generated by FindWSWinLibs.cmake
This has not really been tested on Windows as my installation seems to have
automagically downloaded some fixes and is in an inconsistent state since.
Will probably need to reinstall.
svn path=/trunk/; revision=52194
Diffstat (limited to 'cmake/modules/FindSMI.cmake')
-rw-r--r-- | cmake/modules/FindSMI.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/modules/FindSMI.cmake b/cmake/modules/FindSMI.cmake index 8850cb65d9..a483ebf051 100644 --- a/cmake/modules/FindSMI.cmake +++ b/cmake/modules/FindSMI.cmake @@ -14,10 +14,13 @@ IF (SMI_INCLUDE_DIR) SET(SMI_FIND_QUIETLY TRUE) ENDIF (SMI_INCLUDE_DIR) -FIND_PATH(SMI_INCLUDE_DIR smi.h) +INCLUDE(FindWSWinLibs) +FindWSWinLibs("libsmi-.*" "SMI_HINTS") -SET(SMI_NAMES smi) -FIND_LIBRARY(SMI_LIBRARY NAMES ${SMI_NAMES} ) +FIND_PATH(SMI_INCLUDE_DIR smi.h HINTS "${SMI_HINTS}/include" ) + +SET(SMI_NAMES smi libsmi-2) +FIND_LIBRARY(SMI_LIBRARY NAMES ${SMI_NAMES} HINTS "${SMI_HINTS}/lib" ) # handle the QUIETLY and REQUIRED arguments and set SMI_FOUND to TRUE if # all listed variables are TRUE |