Added groupBots and displayInfos commands
[ryzomcore.git] / CMakeModules / FindSquish.cmake
blob9d0928f879248b781f1e20e530f2843da1916fa2
1 INCLUDE(FindHelpers)
3 FIND_PACKAGE_HELPER(Squish squish.h)
5 IF(SQUISH_FOUND)
6   IF(NOT SQUISH_FIND_QUIETLY)
7     MESSAGE(STATUS "Found Squish: ${SQUISH_LIBRARIES}")
8   ENDIF()
9   FILE(STRINGS ${SQUISH_INCLUDE_DIR}/squish.h METRIC REGEX "metric = 0")
10   IF(METRIC)
11     SET(SQUISH_COMPRESS_HAS_METRIC ON)
12     SET(SQUISH_DEFINITIONS -DSQUISH_COMPRESS_HAS_METRIC)
13   ENDIF()
14 ENDIF()