Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2011-08-02 08:28:05 +0400
committerMike Erwin <significant.bit@gmail.com>2011-08-02 08:28:05 +0400
commit56918978b725ef529ad332db7acdd0682ea17ea7 (patch)
tree669cc7fd644d26caab1d1010e41d0e79afc54c26 /CMakeLists.txt
parentdb494472ac02ff73dbc0984940e7758321e5642d (diff)
parentdc2609da3d08ff2dde1747201ef4e0ebb17d5bd9 (diff)
3D mouse support from merwin-spacenav branch
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 455c3070e8f..2ac6d67cd1c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -179,6 +179,7 @@ option(WITH_LZO "Enable fast LZO compression (used for pointcache)" ON
option(WITH_LZMA "Enable best LZMA compression, (used for pointcache)" ON)
# Misc
+option(WITH_NDOF "Enable NDOF input devices (SpaceNavigator and friends)" ON)
option(WITH_RAYOPTIMIZATION "Enable use of SIMD (SSE) optimizations for the raytracer" ON)
if(UNIX AND NOT APPLE)
option(WITH_INSTALL_PORTABLE "Install redistributeable runtime, otherwise install into CMAKE_INSTALL_PREFIX" ON)
@@ -452,6 +453,15 @@ if(UNIX AND NOT APPLE)
endif()
endif()
+ if (WITH_NDOF)
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ set(NDOF /usr)
+ set(NDOF_INC ${NDOF}/include)
+ set(NDOF_LIBRARY spnav)
+ set(NDOF_LIBPATH ${NDOF}/lib)
+ endif()
+ endif()
+
# OpenSuse needs lutil, ArchLinux not, for now keep, can avoid by using --as-needed
set(PLATFORM_LINKLIBS "-lutil -lc -lm -lpthread -lstdc++")
@@ -1029,6 +1039,10 @@ elseif(APPLE)
set(TIFF_LIBPATH ${TIFF}/lib)
endif()
+ if (WITH_NDOF)
+ # linker needs "-weak_framework 3DconnexionClient"
+ endif()
+
set(EXETYPE MACOSX_BUNDLE)
set(CMAKE_C_FLAGS_DEBUG "-fno-strict-aliasing -g")