aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/NDOF.cmake
diff options
context:
space:
mode:
authorAleric Inglewood2010-09-28 03:01:40 +0200
committerAleric Inglewood2010-09-28 03:01:40 +0200
commit02913d28b3d9cc8805537afcbe4375fa21c313f3 (patch)
treede59684583ddc13ea2aca60517c565acf1b90f4d /linden/indra/cmake/NDOF.cmake
parentRED-566: doc/contributions.txt clean up (diff)
downloadmeta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.zip
meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.gz
meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.bz2
meta-impy-02913d28b3d9cc8805537afcbe4375fa21c313f3.tar.xz
RED-552: VWR-12838: NDOF is assumed to exist, even with --standalone.
See http://redmine.imprudenceviewer.org/issues/552 Add FindNDOF.cmake and treat it like every other library (on standalone).
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)