From 3596ab932c9b3da89760e3d32e48c174b8ca5fea Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Fri, 13 Sep 2013 15:18:17 +0000 Subject: OSX: Compilefix for ndof symbols get magled when used extern C, now use discrete c files embedded, patch by Jake Kauth --- intern/ghost/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'intern/ghost/CMakeLists.txt') diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt index 2538f0612db..0fb6d22b251 100644 --- a/intern/ghost/CMakeLists.txt +++ b/intern/ghost/CMakeLists.txt @@ -191,6 +191,10 @@ elseif(APPLE) intern/GHOST_NDOFManagerCocoa.mm intern/GHOST_NDOFManagerCocoa.h ) + list(APPEND SRC2 + intern/GHOST_NDOFManager3Dconnexion.c + intern/GHOST_NDOFManager3Dconnexion.h + ) endif() else() @@ -318,4 +322,6 @@ endif() add_definitions(-DGLEW_STATIC) blender_add_lib(bf_intern_ghost "${SRC}" "${INC}" "${INC_SYS}") - +if(WITH_INPUT_NDOF) +blender_add_lib(bf_intern_ghostndof3dconnexion "${SRC2}" "${INC}" "${INC_SYS}") +endif() -- cgit v1.2.3