Merge branch 'master' into blender2.8
[blender.git] / source / blender / ikplugin / CMakeLists.txt
index d40a87b4e03f0ea718ca60d499570986021f525e..8991e113410d364bda8547b067f464577dea0144 100644 (file)
@@ -1,4 +1,3 @@
-# $Id: CMakeLists.txt 20156 2009-05-11 16:31:30Z ben2610 $
 # ***** BEGIN GPL LICENSE BLOCK *****
 #
 # This program is free software; you can redistribute it and/or
 #
 # ***** END GPL LICENSE BLOCK *****
 
+remove_extra_strict_flags()
+
 set(INC 
        .
        ../blenkernel
        ../blenlib
        ../makesdna
        ../../../intern/guardedalloc
-       ../../../intern/iksolver/extern
 )
 
 set(INC_SYS
@@ -39,27 +39,34 @@ 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/Eigen3
                ../../../intern/itasc
        )
+       list(APPEND INC_SYS
+               ${EIGEN3_INCLUDE_DIRS}
+       )
        list(APPEND SRC
                intern/itasc_plugin.cpp
+               intern/itasc_plugin.h
        )
 endif()
 
-if(WIN32)
-       add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
-endif()
-
 blender_add_lib(bf_ikplugin "${SRC}" "${INC}" "${INC_SYS}")