Cleanup: sort cmake file lists
[blender.git] / source / gameengine / VideoTexture / 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 set(INC
27         .
28         ../BlenderRoutines
29         ../Expressions
30         ../GameLogic
31         ../Ketsji
32         ../Rasterizer
33         ../Rasterizer/RAS_OpenGLRasterizer
34         ../SceneGraph
35         ../../blender/blenkernel
36         ../../blender/blenlib
37         ../../blender/editors/include
38         ../../blender/gpu
39         ../../blender/imbuf
40         ../../blender/makesdna
41         ../../blender/python
42         ../../blender/python/generic
43         ../../../intern/container
44         ../../../intern/ffmpeg
45         ../../../intern/glew-mx
46         ../../../intern/guardedalloc
47         ../../../intern/string
48         ../../../intern/decklink
49         ../../../intern/gpudirect
50         ../../../intern/atomic
51 )
52
53 set(INC_SYS
54         ../../../intern/moto/include
55         ${GLEW_INCLUDE_PATH}
56 )
57
58 add_definitions(${GL_DEFINITIONS})
59
60 set(SRC
61         DeckLink.cpp
62         Exception.cpp
63         FilterBase.cpp
64         FilterBlueScreen.cpp
65         FilterColor.cpp
66         FilterNormal.cpp
67         FilterSource.cpp
68         ImageBase.cpp
69         ImageBuff.cpp
70         ImageMix.cpp
71         ImageRender.cpp
72         ImageViewport.cpp
73         PyTypeList.cpp
74         Texture.cpp
75         VideoBase.cpp
76         VideoDeckLink.cpp
77         VideoFFmpeg.cpp
78         blendVideoTex.cpp
79
80         BlendType.h
81         Common.h
82         DeckLink.h
83         Exception.h
84         FilterBase.h
85         FilterBlueScreen.h
86         FilterColor.h
87         FilterNormal.h
88         FilterSource.h
89         ImageBase.h
90         ImageBuff.h
91         ImageMix.h
92         ImageRender.h
93         ImageViewport.h
94         PyTypeList.h
95         Texture.h
96         VideoBase.h
97         VideoDeckLink.h
98         VideoFFmpeg.h
99 )
100
101 if(WITH_CODEC_FFMPEG)
102         list(APPEND INC_SYS
103                 ${FFMPEG_INCLUDE_DIRS}
104                 ${PTHREADS_INCLUDE_DIRS}
105         )
106         add_definitions(-DWITH_FFMPEG)
107
108         remove_strict_cxx_flags_file(
109                 VideoFFmpeg.cpp
110                 VideoDeckLink
111                 DeckLink
112         )
113 endif()
114
115 if(WITH_GAMEENGINE_DECKLINK)
116         add_definitions(-DWITH_GAMEENGINE_DECKLINK)
117 endif()
118
119 blender_add_lib(ge_videotex "${SRC}" "${INC}" "${INC_SYS}")