Merged changes in the trunk up to revision 54110.
[blender.git] / source / blenderplayer / bad_level_call_stubs / CMakeLists.txt
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2006, Blender Foundation
18 # All rights reserved.
19 #
20 # The Original Code is: all of this file.
21 #
22 # Contributor(s): Jacques Beaurain.
23 #
24 # ***** END GPL LICENSE BLOCK *****
25
26 # this warning on generated files gets annoying
27 remove_strict_flags()
28
29 set(INC 
30         .
31         ..
32         ../../blender/blenkernel
33         ../../blender/blenloader
34         ../../blender/makesdna
35         ../../blender/makesrna
36         ../../../intern/guardedalloc
37 )
38
39 set(INC_SYS
40         
41 )
42
43 set(SRC
44         stubs.c
45 )
46
47 if(WITH_BUILDINFO)
48         list(APPEND SRC
49                 ../../creator/buildinfo.c
50         )
51         add_definitions(-DBUILD_DATE="\"\""
52                                         -DBUILD_TIME="\"\""
53                                         -DBUILD_REV="\"\""
54                                         -DBUILD_PLATFORM="\"\""
55                                         -DBUILD_TYPE="\"\""
56                                         )
57 endif()
58
59 if(WITH_GAMEENGINE)
60         add_definitions(-DWITH_GAMEENGINE)
61 endif()
62
63 if(WITH_FREESTYLE)
64         add_definitions(-DWITH_FREESTYLE)
65 endif()
66
67 blender_add_lib_nolist(blenkernel_blc "${SRC}" "${INC}" "${INC_SYS}")