Merge branch 'master' into blender2.8
[blender.git] / source / blender / ikplugin / CMakeLists.txt
index bde6f78df8b28e25ce35f0dc9815af4e80e251e3..8991e113410d364bda8547b067f464577dea0144 100644 (file)
 #
 # ***** END GPL LICENSE BLOCK *****
 
+remove_extra_strict_flags()
+
 set(INC 
        .
        ../blenkernel
        ../blenlib
        ../makesdna
        ../../../intern/guardedalloc
-       ../../../intern/iksolver/extern
 )
 
 set(INC_SYS
@@ -38,22 +39,33 @@ set(INC_SYS
 
 set(SRC
        intern/ikplugin_api.c
-       intern/iksolver_plugin.c
 
        BIK_api.h
        intern/ikplugin_api.h
-       intern/iksolver_plugin.h
-       intern/itasc_plugin.h
 )
 
+if(WITH_IK_SOLVER)
+       add_definitions(-DWITH_IK_SOLVER)
+       list(APPEND INC
+               ../../../intern/iksolver/extern
+       )
+       list(APPEND SRC
+               intern/iksolver_plugin.c
+               intern/iksolver_plugin.h
+       )
+endif()
+
 if(WITH_IK_ITASC)
        add_definitions(-DWITH_IK_ITASC)
        list(APPEND INC
-               ../../../extern/Eigen2
                ../../../intern/itasc
        )
+       list(APPEND INC_SYS
+               ${EIGEN3_INCLUDE_DIRS}
+       )
        list(APPEND SRC
                intern/itasc_plugin.cpp
+               intern/itasc_plugin.h
        )
 endif()