Merging r38516 through r38561 from trunk into soc-2011-tomato
[blender.git] / source / blender / ikplugin / CMakeLists.txt
1 # $Id: CMakeLists.txt 20156 2009-05-11 16:31:30Z ben2610 $
2 # ***** BEGIN GPL LICENSE BLOCK *****
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 #
18 # The Original Code is Copyright (C) 2006, Blender Foundation
19 # All rights reserved.
20 #
21 # The Original Code is: all of this file.
22 #
23 # Contributor(s): Jacques Beaurain.
24 #
25 # ***** END GPL LICENSE BLOCK *****
26
27 set(INC 
28         .
29         ../blenkernel
30         ../blenlib
31         ../makesdna
32         ../../../intern/guardedalloc
33         ../../../intern/iksolver/extern
34 )
35
36 set(INC_SYS
37
38 )
39
40 set(SRC
41         intern/ikplugin_api.c
42         intern/iksolver_plugin.c
43
44         BIK_api.h
45         intern/ikplugin_api.h
46         intern/iksolver_plugin.h
47         intern/itasc_plugin.h
48 )
49
50 if(WITH_IK_ITASC)
51         add_definitions(-DWITH_IK_ITASC)
52         list(APPEND INC
53                 ../../../extern/Eigen3
54                 ../../../intern/itasc
55         )
56         list(APPEND SRC
57                 intern/itasc_plugin.cpp
58         )
59 endif()
60
61 if(WIN32)
62         add_definitions(-DEIGEN_DONT_ALIGN_STATICALLY)
63 endif()
64
65 blender_add_lib(bf_ikplugin "${SRC}" "${INC}" "${INC_SYS}")