PageRenderTime 47ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/cmake/NDOF.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 32 lines | 25 code | 6 blank | 1 comment | 6 complexity | 25a4f34ef3c614f567275c4ac22fbb99 MD5 | raw file
Possible License(s): LGPL-2.1
  1. # -*- cmake -*-
  2. include(Prebuilt)
  3. set(NDOF ON CACHE BOOL "Use NDOF space navigator joystick library.")
  4. if (NDOF)
  5. if (STANDALONE)
  6. set(NDOF_FIND_REQUIRED ON)
  7. include(FindNDOF)
  8. else (STANDALONE)
  9. use_prebuilt_binary(ndofdev)
  10. if (WINDOWS)
  11. set(NDOF_LIBRARY libndofdev)
  12. elseif (DARWIN OR LINUX)
  13. set(NDOF_LIBRARY ndofdev)
  14. endif (WINDOWS)
  15. set(NDOF_INCLUDE_DIR ${ARCH_PREBUILT_DIRS}/include/ndofdev)
  16. set(NDOF_FOUND 1)
  17. endif (STANDALONE)
  18. endif (NDOF)
  19. if (NDOF_FOUND)
  20. add_definitions(-DLIB_NDOF=1)
  21. include_directories(${NDOF_INCLUDE_DIR})
  22. else (NDOF_FOUND)
  23. message(STATUS "Building without N-DoF joystick support")
  24. set(NDOF_INCLUDE_DIR "")
  25. set(NDOF_LIBRARY "")
  26. endif (NDOF_FOUND)