15 lines
373 B
CMake
15 lines
373 B
CMake
5 years ago
|
INCLUDE(FindHelpers)
|
||
15 years ago
|
|
||
5 years ago
|
FIND_PACKAGE_HELPER(Squish squish.h)
|
||
15 years ago
|
|
||
|
IF(SQUISH_FOUND)
|
||
15 years ago
|
IF(NOT SQUISH_FIND_QUIETLY)
|
||
15 years ago
|
MESSAGE(STATUS "Found Squish: ${SQUISH_LIBRARIES}")
|
||
8 years ago
|
ENDIF()
|
||
12 years ago
|
FILE(STRINGS ${SQUISH_INCLUDE_DIR}/squish.h METRIC REGEX "metric = 0")
|
||
|
IF(METRIC)
|
||
|
SET(SQUISH_COMPRESS_HAS_METRIC ON)
|
||
|
SET(SQUISH_DEFINITIONS -DSQUISH_COMPRESS_HAS_METRIC)
|
||
8 years ago
|
ENDIF()
|
||
|
ENDIF()
|