diff options
author | Mike Erwin <significant.bit@gmail.com> | 2011-08-02 08:28:05 +0400 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2011-08-02 08:28:05 +0400 |
commit | 56918978b725ef529ad332db7acdd0682ea17ea7 (patch) | |
tree | 669cc7fd644d26caab1d1010e41d0e79afc54c26 /CMakeLists.txt | |
parent | db494472ac02ff73dbc0984940e7758321e5642d (diff) | |
parent | dc2609da3d08ff2dde1747201ef4e0ebb17d5bd9 (diff) |
3D mouse support from merwin-spacenav branch
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
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") |