enable CMake builds with spacenav (contributed by Kevin Cozens)
[blender.git] / build_files / cmake / macros.cmake
index 34301458a0654361a962b22e91e4e07f3a9a8263..3de9db6dac9cb3a706c34d30f6ebd06507272bb1 100644 (file)
@@ -193,6 +193,9 @@ macro(SETUP_LIBDIRS)
        if(WITH_MEM_JEMALLOC)
                link_directories(${JEMALLOC_LIBPATH})
        endif()
+       if(WITH_NDOF)
+               link_directories(${NDOF_LIBPATH})
+       endif()
 
        if(WIN32 AND NOT UNIX)
                link_directories(${PTHREADS_LIBPATH})
@@ -314,6 +317,10 @@ macro(setup_liblinks
        if(WITH_MEM_JEMALLOC)
                target_link_libraries(${target} ${JEMALLOC_LIBRARIES})
        endif()
+       if(WITH_NDOF)
+               target_link_libraries(${target} ${NDOF_LIBRARY})
+       endif()
+
        if(WIN32 AND NOT UNIX)
                target_link_libraries(${target} ${PTHREADS_LIBRARIES})
        endif()