File: FindDXGuid.cmake

package info (click to toggle)
allegro4.4 2:4.4.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 20,744 kB
  • sloc: ansic: 164,458; asm: 17,620; cpp: 3,848; objc: 1,687; sh: 1,107; python: 676; pascal: 179; makefile: 55; perl: 29; lisp: 1
file content (28 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# - Find dxguid
# Find the dxguid libraries
#
#  DXGUID_LIBRARIES   - List of libraries
#  DXGUID_FOUND       - True if dxguid found.

if(MSVC)
    find_library(DXGUID_LIBRARY NAMES dxguid
        PATHS "C:/Program Files/Microsoft DirectX SDK (August 2008)/Lib"
        PATH_SUFFIXES x86 x64
        )
else()
    find_library(DXGUID_LIBRARY NAMES dxguid)
endif()

# Handle the QUIETLY and REQUIRED arguments and set DXGUID_FOUND to TRUE if
# all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(DXGUID DEFAULT_MSG
    DXGUID_LIBRARY)

if(DXGUID_FOUND)
    set(DXGUID_LIBRARIES ${DXGUID_LIBRARY})
else(DXGUID_FOUND)
    set(DXGUID_LIBRARIES)
endif(DXGUID_FOUND)

mark_as_advanced(DXGUID_INCLUDE_DIR DXGUID_LIBRARY)