diff options
Diffstat (limited to 'linden/indra/cmake/NDOF.cmake')
-rw-r--r-- | linden/indra/cmake/NDOF.cmake | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/linden/indra/cmake/NDOF.cmake b/linden/indra/cmake/NDOF.cmake index dad74e9..bdf5db1 100644 --- a/linden/indra/cmake/NDOF.cmake +++ b/linden/indra/cmake/NDOF.cmake | |||
@@ -1,14 +1,28 @@ | |||
1 | # -*- cmake -*- | 1 | # -*- cmake -*- |
2 | include(Prebuilt) | 2 | include(Prebuilt) |
3 | 3 | ||
4 | use_prebuilt_binary(ndofdev) | 4 | if (STANDALONE) |
5 | include(FindNDOF) | ||
6 | if(NOT NDOF_FOUND) | ||
7 | message(STATUS "Building without N-DoF joystick support") | ||
8 | endif(NOT NDOF_FOUND) | ||
9 | else (STANDALONE) | ||
10 | use_prebuilt_binary(ndofdev) | ||
5 | 11 | ||
6 | if (WINDOWS OR DARWIN OR LINUX) | 12 | if (WINDOWS) |
7 | add_definitions(-DLIB_NDOF=1) | 13 | set(NDOF_LIBRARY libndofdev) |
8 | endif (WINDOWS OR DARWIN OR LINUX) | 14 | elseif (DARWIN OR LINUX) |
15 | set(NDOF_LIBRARY ndofdev) | ||
16 | endif (WINDOWS) | ||
17 | |||
18 | set(NDOF_INCLUDE_DIR ${ARCH_PREBUILT_DIRS}/include/ndofdev) | ||
19 | set(NDOF_FOUND 1) | ||
20 | endif (STANDALONE) | ||
9 | 21 | ||
10 | if (WINDOWS) | 22 | if (NDOF_FOUND) |
11 | set(NDOF_LIBRARY libndofdev) | 23 | add_definitions(-DLIB_NDOF=1) |
12 | elseif (DARWIN OR LINUX) | 24 | include_directories(${NDOF_INCLUDE_DIR}) |
13 | set(NDOF_LIBRARY ndofdev) | 25 | else (NDOF_FOUND) |
14 | endif (WINDOWS) | 26 | set(NDOF_INCLUDE_DIR "") |
27 | set(NDOF_LIBRARY "") | ||
28 | endif (NDOF_FOUND) | ||