NDOF.cmake 574 B

1234567891011121314151617181920212223242526272829
  1. # -*- cmake -*-
  2. if (NDOF_CMAKE_INCLUDED)
  3. return()
  4. endif (NDOF_CMAKE_INCLUDED)
  5. set (NDOF_CMAKE_INCLUDED TRUE)
  6. include(00-BuildOptions)
  7. include(Prebuilt)
  8. set(NDOF_FIND_REQUIRED OFF)
  9. if (USESYSTEMLIBS)
  10. include(FindNDOF)
  11. endif (USESYSTEMLIBS)
  12. if (NOT NDOF_FOUND)
  13. use_prebuilt_binary(ndofdev)
  14. if (WINDOWS)
  15. set(NDOF_LIBRARY libndofdev)
  16. elseif (DARWIN OR LINUX)
  17. set(NDOF_LIBRARY ndofdev)
  18. endif ()
  19. set(NDOF_INCLUDE_DIR ${ARCH_PREBUILT_DIRS}/include/ndofdev)
  20. set(NDOF_FOUND "YES")
  21. endif (NOT NDOF_FOUND)
  22. include_directories(SYSTEM ${NDOF_INCLUDE_DIR})