rename cmake include/libraries to conform with suggested cmake names
[blender.git] / source / gameengine / VideoTexture / CMakeLists.txt
index 255d090..c412363 100644 (file)
@@ -13,7 +13,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software Foundation,
-# Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 # The Original Code is Copyright (C) 2006, Blender Foundation
 # All rights reserved.
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.cpp)
+set(INC
+       .
+       ../../../source/gameengine/Ketsji
+       ../../../source/gameengine/Expressions
+       ../../../source/gameengine/GameLogic
+       ../../../source/gameengine/SceneGraph
+       ../../../source/gameengine/Rasterizer
+       ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
+       ../../../source/gameengine/BlenderRoutines
+       ../../../source/blender/blenlib
+       ../../../source/blender/blenkernel
+       ../../../source/blender/makesdna
+       ../../../source/blender/editors/include
+       ../../../source/blender/imbuf
+       ../../../source/blender/python
+       ../../../source/blender/python/generic
+       ../../../source/blender/gpu
+       ../../../intern/container
+       ../../../intern/string
+       ../../../intern/moto/include
+       ../../../intern/guardedalloc
+       ../../../intern/ffmpeg
+)
+
+set(INC_SYS
+       ${GLEW_INCLUDE_PATH}
+)
+
+set(SRC
+       Exception.cpp
+       FilterBase.cpp
+       FilterBlueScreen.cpp
+       FilterColor.cpp
+       FilterNormal.cpp
+       FilterSource.cpp
+       ImageBase.cpp
+       ImageBuff.cpp
+       ImageMix.cpp
+       ImageRender.cpp
+       ImageViewport.cpp
+       PyTypeList.cpp
+       Texture.cpp
+       VideoBase.cpp
+       VideoFFmpeg.cpp
+       blendVideoTex.cpp
 
-SET(INC
-  .
-  ../../../source/gameengine/Ketsji
-  ../../../source/gameengine/Expressions
-  ../../../source/gameengine/GameLogic
-  ../../../source/gameengine/SceneGraph
-  ../../../source/gameengine/Rasterizer
-  ../../../source/gameengine/Rasterizer/RAS_OpenGLRasterizer
-  ../../../source/gameengine/BlenderRoutines
-  ../../../source/blender/include
-  ../../../source/blender/blenlib
-  ../../../source/blender/blenkernel
-  ../../../source/blender/makesdna
-  ../../../source/blender/editors/include
-  ../../../source/blender/imbuf
-  ../../../source/blender/python
-  ../../../source/blender/gpu
-  ../../../source/kernel/gen_system
-  ../../../intern/string
-  ../../../intern/moto/include
-  ../../../intern/guardedalloc
-  ../../../extern/glew/include
-  ${PYTHON_INC}
+       BlendType.h
+       Common.h
+       Exception.h
+       FilterBase.h
+       FilterBlueScreen.h
+       FilterColor.h
+       FilterNormal.h
+       FilterSource.h
+       ImageBase.h
+       ImageBuff.h
+       ImageMix.h
+       ImageRender.h
+       ImageViewport.h
+       PyTypeList.h
+       Texture.h
+       VideoBase.h
+       VideoFFmpeg.h
 )
 
-IF(WITH_FFMPEG)
-  SET(INC ${INC} ${FFMPEG_INC} ${PTHREADS_INC})
-  ADD_DEFINITIONS(-DWITH_FFMPEG)
-  ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS)
-ENDIF(WITH_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+       list(APPEND INC_SYS
+               ${FFMPEG_INCLUDE_DIRS}
+               ${PTHREADS_INCLUDE_DIRS}
+       )
+       add_definitions(-DWITH_FFMPEG)
+       add_definitions(-D__STDC_CONSTANT_MACROS)
+endif()
 
-BLENDERLIB(bf_videotex "${SRC}" "${INC}")
-#env.BlenderLib ( 'bf_videotex', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags )
+blender_add_lib(ge_videotex "${SRC}" "${INC}" "${INC_SYS}")