Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yagisan
committed
Jul 23, 2006
1 parent
3dc8bda
commit 0eb89ce
Showing
3 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# - Find DirectX Direct Input | ||
# Find the DirectX includes and libraries | ||
# | ||
# DIRECTX_DINPUT_INCLUDE_DIR - where to find dinput.h | ||
# DIRECTX_DINPUT_LIBRARIES - List of libraries when using DirectX DInput. | ||
# DIRECTX_DINPUT_FOUND - True if DirectX DInputfound. | ||
|
||
FIND_PATH(DIRECTX_DINPUT_INCLUDE_DIR dinput.h | ||
$ENV{DIRECTXDIR}/include | ||
/usr/local/include/directx | ||
/usr/local/include | ||
/usr/include | ||
) | ||
|
||
SET(DIRECTX_DINPUT_NAMES ${DIRECTX_DINPUT_NAMES} dinput) | ||
FIND_LIBRARY(DIRECTX_DINPUT_LIBRARY | ||
NAMES ${DIRECTX_DINPUT_NAMES} | ||
PATHS | ||
$ENV{DIRECTXDIR}/lib | ||
/usr/lib | ||
/usr/local/lib | ||
/usr/local/lib/directx | ||
) | ||
|
||
IF(DIRECTX_INCLUDE_DIR) | ||
IF(DIRECTX_DINPUT_LIBRARY) | ||
SET( DIRECTX_DINPUT_LIBRARIES ${DIRECTX_DINPUT_LIBRARY} ) | ||
ENDIF(DIRECTX_DINPUT_LIBRARY) | ||
ENDIF(DIRECTX_INCLUDE_DIR) | ||
|
||
SET(DIRECTX_DINPUT_FOUND "NO") | ||
IF(DIRECTX_DINPUT_LIBRARY) | ||
SET(DIRECTX_DINPUT_FOUND "YES") | ||
ENDIF(DIRECTX_DINPUT_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters