diff options
Diffstat (limited to 'source/blender/ikplugin/CMakeLists.txt')
-rw-r--r-- | source/blender/ikplugin/CMakeLists.txt | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/source/blender/ikplugin/CMakeLists.txt b/source/blender/ikplugin/CMakeLists.txt index ef1f4d450b9..47c773756a9 100644 --- a/source/blender/ikplugin/CMakeLists.txt +++ b/source/blender/ikplugin/CMakeLists.txt @@ -24,12 +24,32 @@ # # ***** END GPL LICENSE BLOCK ***** -FILE(GLOB SRC intern/*.c intern/*.cpp) +set(INC + ../blenlib + ../makesdna + ../blenkernel + ../ikplugin + ../../../intern/guardedalloc + ../../../intern/iksolver/extern +) + +set(SRC + intern/ikplugin_api.c + intern/iksolver_plugin.c -SET(INC - ../../../intern/guardedalloc ../../../intern/iksolver/extern - ../../../intern/itasc ../../../extern/Eigen2 - ../blenlib ../makesdna ../blenkernel ../include ../ikplugin + BIK_api.h + intern/ikplugin_api.h + intern/iksolver_plugin.h + intern/itasc_plugin.h ) -BLENDERLIB(bf_ikplugin "${SRC}" "${INC}") +if(WITH_IK_ITASC) + add_definitions(-DWITH_IK_ITASC) + list(APPEND INC ../../../extern/Eigen2) + list(APPEND INC ../../../intern/itasc) + list(APPEND SRC + ./intern/itasc_plugin.cpp + ) +endif() + +blender_add_lib(bf_ikplugin "${SRC}" "${INC}") |