rename cmake include/libraries to conform with suggested cmake names
[blender.git] / source / gameengine / VideoTexture / CMakeLists.txt
index 935c5a2..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.
@@ -24,9 +24,7 @@
 #
 # ***** END GPL LICENSE BLOCK *****
 
-FILE(GLOB SRC *.cpp)
-
-SET(INC
+set(INC
        .
        ../../../source/gameengine/Ketsji
        ../../../source/gameengine/Expressions
@@ -35,27 +33,69 @@ SET(INC
        ../../../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/python/generic
        ../../../source/blender/gpu
-       ../../../source/kernel/gen_system
+       ../../../intern/container
        ../../../intern/string
        ../../../intern/moto/include
        ../../../intern/guardedalloc
-       ../../../extern/glew/include
-       ${PYTHON_INC}
+       ../../../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
+
+       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}")