diff options
author | Aleric Inglewood | 2010-09-28 03:01:40 +0200 |
---|---|---|
committer | McCabe Maxsted | 2010-10-01 20:34:14 -0700 |
commit | 356d99a05f8d72142df28a028e5c57780e012762 (patch) | |
tree | 08fe81c4f46be936c0f230a11ee93edba9aa161e /linden/indra/cmake/NDOF.cmake | |
parent | RED-566: doc/contributions.txt clean up (diff) | |
download | meta-impy-356d99a05f8d72142df28a028e5c57780e012762.zip meta-impy-356d99a05f8d72142df28a028e5c57780e012762.tar.gz meta-impy-356d99a05f8d72142df28a028e5c57780e012762.tar.bz2 meta-impy-356d99a05f8d72142df28a028e5c57780e012762.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 '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) | ||