2010-10-16 17:12:10 +00:00
|
|
|
# - Find dxguid
|
|
|
|
# Find the dxguid libraries
|
|
|
|
#
|
|
|
|
# DXGUID_LIBRARIES - List of libraries
|
|
|
|
# DXGUID_FOUND - True if dxguid found.
|
|
|
|
|
2010-10-17 18:54:26 +00:00
|
|
|
find_library(DXGUID_LIBRARY
|
|
|
|
NAMES dxguid
|
|
|
|
PATHS "$ENV{DXSDK_DIR}/Lib/$ENV{PROCESSOR_ARCHITECTURE}"
|
|
|
|
)
|
2010-10-16 17:12:10 +00:00
|
|
|
|
|
|
|
# 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)
|