File: FindPVRTools.cmake

package info (click to toggle)
cegui-mk2 0.8.7%2Bgit20220615-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 57,816 kB
  • sloc: cpp: 306,263; python: 1,175; ansic: 812; sh: 616; xml: 191; java: 162; makefile: 21
file content (24 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
################################################################################
# Custom cmake module for CEGUI to find PVRTools lib (part of PowerVR SDK) 
################################################################################
include(FindPackageHandleStandardArgs)

find_path(PVRTOOLS_H_PATH NAMES PVRTDecompress.h)
find_library(PVRTOOLS_LIB NAMES oglestools)
mark_as_advanced(PVRTOOLS_H_PATH PVRTOOLS_LIB PVRTOOLS_LIB_DBG)

find_package_handle_standard_args(PVRTOOLS DEFAULT_MSG PVRTOOLS_LIB PVRTOOLS_H_PATH)

# set up output vars
if (PVRTOOLS_FOUND)
    set (PVRTOOLS_INCLUDE_DIR ${PVRTOOLS_H_PATH})
    set (PVRTOOLS_LIBRARIES ${PVRTOOLS_LIB})
    if (PVRTOOLS_LIB_DBG)
        set (PVRTOOLS_LIBRARIES_DBG ${PVRTOOLS_LIB_DBG})
    endif()
else()
    set (PVRTOOLS_INCLUDE_DIR)
    set (PVRTOOLS_LIBRARIES)
    set (PVRTOOLS_LIBRARIES_DBG)
endif()