Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core3/cmake/FindDirectX.cmake @ 1894

Last change on this file since 1894 was 1505, checked in by rgrieder, 16 years ago

f* svn: It doesn't even inform you if you attempt to set a non existing property. It is svn:eol-style and not eol-style when using the command by the way…

  • Property svn:eol-style set to native
File size: 914 bytes
Line 
1IF(WIN32)
2  # - Test for DirectX
3  # Once loaded this will define
4  #   DirectX_FOUND        - system has DirectX
5  #   DirectX_INCLUDE_DIR  - include directory for DirectX
6  #   DirectX_LIB_DIR      - lib directory for DirectX
7
8  set(DirectX_FOUND "NO")
9
10  FIND_PATH(DirectX_INCLUDE_DIR "dinput.h"
11    C:/DXSDK/Include
12  )
13
14  FIND_PATH(DirectX_LIB_DIR "dinput8.lib"
15    C:/DXSDK/Lib
16    C:/DXSDK/Lib/x86
17  )
18
19  if(DirectX_INCLUDE_DIR AND DirectX_LIB_DIR)
20    set(DirectX_FOUND "YES")
21  endif(DirectX_INCLUDE_DIR AND DirectX_LIB_DIR)
22
23  if (DirectX_FOUND)
24    if (NOT DirectX_FIND_QUIETLY)
25      message(STATUS "Found DirectX")
26    endif (NOT DirectX_FIND_QUIETLY)
27  else (DirectX_FOUND)
28    if (DirectX_FIND_REQUIRED)
29      message(FATAL_ERROR "Could not find DirectX")
30    else (DirectX_FOUNC)
31      message(STATUS "Could not find DirectX")
32    endif (DirectX_FIND_REQUIRED)
33  endif (DirectX_FOUND)
34ENDIF(WIN32)
Note: See TracBrowser for help on using the repository browser.