|
|
@ -27,7 +27,7 @@ FIND_PATH(DXSDK_DIR
|
|
|
|
MACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
|
|
MACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
|
|
FIND_LIBRARY(${MYLIBRARY}
|
|
|
|
FIND_LIBRARY(${MYLIBRARY}
|
|
|
|
NAMES ${MYLIBRARYNAME}
|
|
|
|
NAMES ${MYLIBRARYNAME}
|
|
|
|
PATHS
|
|
|
|
HINTS
|
|
|
|
"${DXSDK_LIBRARY_DIR}"
|
|
|
|
"${DXSDK_LIBRARY_DIR}"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
ENDMACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
|
|
ENDMACRO(FIND_DXSDK_LIBRARY MYLIBRARY MYLIBRARYNAME)
|
|
|
@ -36,11 +36,16 @@ IF(DXSDK_DIR)
|
|
|
|
SET(DXSDK_INCLUDE_DIR "${DXSDK_DIR}/Include")
|
|
|
|
SET(DXSDK_INCLUDE_DIR "${DXSDK_DIR}/Include")
|
|
|
|
|
|
|
|
|
|
|
|
IF(TARGET_X64)
|
|
|
|
IF(TARGET_X64)
|
|
|
|
SET(DXSDK_LIBRARY_DIR "${DXSDK_DIR}/Lib/x64")
|
|
|
|
SET(DXSDK_LIBRARY_DIRS ${DXSDK_DIR}/Lib/x64 ${DXSDK_DIR}/lib/amd64)
|
|
|
|
ELSE(TARGET_X64)
|
|
|
|
ELSE(TARGET_X64)
|
|
|
|
SET(DXSDK_LIBRARY_DIR "${DXSDK_DIR}/Lib/x86")
|
|
|
|
SET(DXSDK_LIBRARY_DIRS ${DXSDK_DIR}/Lib/x86 ${DXSDK_DIR}/lib)
|
|
|
|
ENDIF(TARGET_X64)
|
|
|
|
ENDIF(TARGET_X64)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FIND_PATH(DXSDK_LIBRARY_DIR
|
|
|
|
|
|
|
|
dxguid.lib
|
|
|
|
|
|
|
|
PATHS
|
|
|
|
|
|
|
|
${DXSDK_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_GUID_LIBRARY dxguid)
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_GUID_LIBRARY dxguid)
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_DINPUT_LIBRARY dinput8)
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_DINPUT_LIBRARY dinput8)
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_DSOUND_LIBRARY dsound)
|
|
|
|
FIND_DXSDK_LIBRARY(DXSDK_DSOUND_LIBRARY dsound)
|
|
|
|