forked from osmocom/wireshark
36 lines
1.2 KiB
CMake
36 lines
1.2 KiB
CMake
#
|
|
# - Find WinSparkle
|
|
# Find the native WinSparkle includes and library
|
|
#
|
|
# WINSPARKLE_INCLUDE_DIRS - where to find WinSparkle.h, etc.
|
|
# WINSPARKLE_LIBRARIES - List of libraries when using WinSparkle.
|
|
# WINSPARKLE_FOUND - True if WinSparkle found.
|
|
|
|
|
|
IF (WINSPARKLE_INCLUDE_DIRS)
|
|
# Already in cache, be silent
|
|
SET(WINSPARKLE_FIND_QUIETLY TRUE)
|
|
ENDIF (WINSPARKLE_INCLUDE_DIRS)
|
|
|
|
INCLUDE(FindWSWinLibs)
|
|
FindWSWinLibs("WinSparkle-.*" "WINSPARKLE_HINTS")
|
|
|
|
FIND_PATH(WINSPARKLE_INCLUDE_DIR winsparkle.h HINTS "${WINSPARKLE_HINTS}" )
|
|
|
|
FIND_LIBRARY(WINSPARKLE_LIBRARY NAMES WinSparkle HINTS "${WINSPARKLE_HINTS}" )
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set WINSPARKLE_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(WINSPARKLE DEFAULT_MSG WINSPARKLE_LIBRARY WINSPARKLE_INCLUDE_DIR)
|
|
|
|
IF(WINSPARKLE_FOUND)
|
|
SET(WINSPARKLE_LIBRARIES ${WINSPARKLE_LIBRARY} )
|
|
SET(WINSPARKLE_INCLUDE_DIRS ${WINSPARKLE_INCLUDE_DIR} )
|
|
ELSE(WINSPARKLE_FOUND)
|
|
SET(WINSPARKLE_LIBRARIES )
|
|
SET(WINSPARKLE_INCLUDE_DIRS )
|
|
ENDIF(WINSPARKLE_FOUND)
|
|
|
|
MARK_AS_ADVANCED( WINSPARKLE_LIBRARIES WINSPARKLE_INCLUDE_DIRS )
|