have cmake build editors as different libs like scons and nan-makefiles
[blender.git] / source / blender / editors / object / CMakeLists.txt
1 # $Id: CMakeLists.txt 12931 2007-12-17 18:20:48Z theeth $
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 FILE(GLOB SRC *.c)
28
29 SET(INC
30         ../../windowmanager
31         ../../editors/include
32         ../../editors/interface
33         ../../../../intern/guardedalloc
34         ../../../../intern/memutil
35         ../../blenlib ../../makesdna
36         ../../makesrna ../../blenkernel
37         ../../include ../../imbuf
38         ../../render/extern/include
39         ../../../../intern/bsp/extern
40         ../../../../intern/decimation/extern
41         ../../blenloader
42         ../../python
43         ../../../kernel/gen_system
44         ../../readstreamglue
45         ../../../../intern/elbeem/extern
46         ../../../../intern/ghost
47         ../../../../intern/opennl/extern
48         ../../../../extern/glew/include
49         ../../../../intern/smoke/extern
50         ../../../../intern/audaspace/intern
51         ../../nodes
52         ../../gpu
53         ../../blenfont
54         ../../ikplugin
55 )
56
57 ADD_DEFINITIONS(-DGLEW_STATIC)
58
59 IF(WITH_GAMEENGINE)
60         ADD_DEFINITIONS(-DGAMEBLENDER)
61 ENDIF(WITH_GAMEENGINE)
62
63 IF(WITH_INTERNATIONAL)
64         ADD_DEFINITIONS(-DINTERNATIONAL)
65 ENDIF(WITH_INTERNATIONAL)
66
67 IF(WITH_OPENEXR)
68         ADD_DEFINITIONS(-DWITH_OPENEXR)
69 ENDIF(WITH_OPENEXR)
70
71 IF(WITH_TIFF)
72         ADD_DEFINITIONS(-DWITH_TIFF)
73 ENDIF(WITH_TIFF)
74
75 IF(WITH_OPENJPEG)
76         ADD_DEFINITIONS(-DWITH_OPENJPEG)
77 ENDIF(WITH_OPENJPEG)
78
79 IF(WITH_QUICKTIME)
80         SET(INC ${INC} ../quicktime ${QUICKTIME_INC})
81         ADD_DEFINITIONS(-DWITH_QUICKTIME)
82 ENDIF(WITH_QUICKTIME)
83
84 IF(WITH_FFMPEG)
85         SET(INC ${INC} ${FFMPEG_INC})
86         ADD_DEFINITIONS(-DWITH_FFMPEG)
87 ENDIF(WITH_FFMPEG)
88
89 IF(WITH_OPENMP)
90                 ADD_DEFINITIONS(-DPARALLEL=1)
91 ENDIF(WITH_OPENMP)
92
93 IF(NOT WITH_ELBEEM)
94         ADD_DEFINITIONS(-DDISABLE_ELBEEM)
95 ENDIF(NOT WITH_ELBEEM)
96
97 IF(WITH_PYTHON)
98         SET(INC ${INC} ${PYTHON_INC})
99 ELSE(WITH_PYTHON)
100         ADD_DEFINITIONS(-DDISABLE_PYTHON)
101 ENDIF(WITH_PYTHON)
102
103 IF(WIN32)
104         SET(INC ${INC} ${PTHREADS_INC})
105 ENDIF(WIN32)
106
107 IF(WITH_BUILDINFO)
108         ADD_DEFINITIONS(-DNAN_BUILDINFO)
109 ENDIF(WITH_BUILDINFO)
110
111 BLENDERLIB(bf_editor_object "${SRC}" "${INC}")