aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/NDOF.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/cmake/NDOF.cmake32
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 -*-
2include(Prebuilt) 2include(Prebuilt)
3 3
4use_prebuilt_binary(ndofdev) 4if (STANDALONE)
5 include(FindNDOF)
6 if(NOT NDOF_FOUND)
7 message(STATUS "Building without N-DoF joystick support")
8 endif(NOT NDOF_FOUND)
9else (STANDALONE)
10 use_prebuilt_binary(ndofdev)
5 11
6if (WINDOWS OR DARWIN OR LINUX) 12 if (WINDOWS)
7 add_definitions(-DLIB_NDOF=1) 13 set(NDOF_LIBRARY libndofdev)
8endif (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)
20endif (STANDALONE)
9 21
10if (WINDOWS) 22if (NDOF_FOUND)
11 set(NDOF_LIBRARY libndofdev) 23 add_definitions(-DLIB_NDOF=1)
12elseif (DARWIN OR LINUX) 24 include_directories(${NDOF_INCLUDE_DIR})
13 set(NDOF_LIBRARY ndofdev) 25else (NDOF_FOUND)
14endif (WINDOWS) 26 set(NDOF_INCLUDE_DIR "")
27 set(NDOF_LIBRARY "")
28endif (NDOF_FOUND)