Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-12-08 11:43:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-12-08 11:43:06 +0300
commitafacd184982e58a9c830a3d5366e25983939a7ba (patch)
tree311ee6e5abfcda32e3cbad133276512d68abe25b /source
parent70df57df0f82be3966a09c8548bfde23fd5c17c4 (diff)
use lowercase for cmake builtin names and macros, remove contents in else() and endif() which is no longer needed.
Diffstat (limited to 'source')
-rw-r--r--source/CMakeLists.txt16
-rw-r--r--source/blender/CMakeLists.txt70
-rw-r--r--source/blender/avi/CMakeLists.txt6
-rw-r--r--source/blender/blenfont/CMakeLists.txt20
-rw-r--r--source/blender/blenkernel/CMakeLists.txt124
-rw-r--r--source/blender/blenlib/CMakeLists.txt18
-rw-r--r--source/blender/blenloader/CMakeLists.txt6
-rw-r--r--source/blender/blenpluginapi/CMakeLists.txt14
-rw-r--r--source/blender/collada/CMakeLists.txt24
-rw-r--r--source/blender/editors/CMakeLists.txt72
-rw-r--r--source/blender/editors/animation/CMakeLists.txt6
-rw-r--r--source/blender/editors/armature/CMakeLists.txt6
-rw-r--r--source/blender/editors/curve/CMakeLists.txt6
-rw-r--r--source/blender/editors/datafiles/CMakeLists.txt6
-rw-r--r--source/blender/editors/gpencil/CMakeLists.txt6
-rw-r--r--source/blender/editors/interface/CMakeLists.txt18
-rw-r--r--source/blender/editors/mesh/CMakeLists.txt6
-rw-r--r--source/blender/editors/metaball/CMakeLists.txt6
-rw-r--r--source/blender/editors/object/CMakeLists.txt12
-rw-r--r--source/blender/editors/physics/CMakeLists.txt18
-rw-r--r--source/blender/editors/render/CMakeLists.txt20
-rw-r--r--source/blender/editors/screen/CMakeLists.txt6
-rw-r--r--source/blender/editors/sculpt_paint/CMakeLists.txt6
-rw-r--r--source/blender/editors/sound/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_action/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_api/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_buttons/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_console/CMakeLists.txt12
-rw-r--r--source/blender/editors/space_file/CMakeLists.txt42
-rw-r--r--source/blender/editors/space_graph/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_image/CMakeLists.txt38
-rw-r--r--source/blender/editors/space_info/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_logic/CMakeLists.txt12
-rw-r--r--source/blender/editors/space_nla/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_node/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_outliner/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_script/CMakeLists.txt14
-rw-r--r--source/blender/editors/space_sequencer/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_sound/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_text/CMakeLists.txt14
-rw-r--r--source/blender/editors/space_time/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_userpref/CMakeLists.txt6
-rw-r--r--source/blender/editors/space_view3d/CMakeLists.txt16
-rw-r--r--source/blender/editors/transform/CMakeLists.txt6
-rw-r--r--source/blender/editors/util/CMakeLists.txt6
-rw-r--r--source/blender/editors/uvedit/CMakeLists.txt6
-rw-r--r--source/blender/gpu/CMakeLists.txt8
-rw-r--r--source/blender/ikplugin/CMakeLists.txt18
-rw-r--r--source/blender/imbuf/CMakeLists.txt70
-rw-r--r--source/blender/imbuf/intern/cineon/CMakeLists.txt6
-rw-r--r--source/blender/imbuf/intern/dds/CMakeLists.txt10
-rw-r--r--source/blender/imbuf/intern/openexr/CMakeLists.txt12
-rw-r--r--source/blender/makesdna/CMakeLists.txt2
-rw-r--r--source/blender/makesdna/intern/CMakeLists.txt22
-rw-r--r--source/blender/makesrna/CMakeLists.txt2
-rw-r--r--source/blender/makesrna/intern/CMakeLists.txt140
-rw-r--r--source/blender/makesrna/intern/rna_texture.c2
-rw-r--r--source/blender/modifiers/CMakeLists.txt30
-rw-r--r--source/blender/nodes/CMakeLists.txt14
-rw-r--r--source/blender/python/CMakeLists.txt4
-rw-r--r--source/blender/python/generic/CMakeLists.txt6
-rw-r--r--source/blender/python/intern/CMakeLists.txt12
-rw-r--r--source/blender/quicktime/CMakeLists.txt16
-rw-r--r--source/blender/readblenfile/CMakeLists.txt6
-rw-r--r--source/blender/render/CMakeLists.txt34
-rw-r--r--source/blender/windowmanager/CMakeLists.txt62
-rw-r--r--source/blenderplayer/CMakeLists.txt108
-rw-r--r--source/blenderplayer/bad_level_call_stubs/CMakeLists.txt28
-rw-r--r--source/creator/CMakeLists.txt370
-rw-r--r--source/gameengine/BlenderRoutines/CMakeLists.txt14
-rw-r--r--source/gameengine/CMakeLists.txt52
-rw-r--r--source/gameengine/Converter/CMakeLists.txt12
-rw-r--r--source/gameengine/Expressions/CMakeLists.txt6
-rw-r--r--source/gameengine/GameLogic/CMakeLists.txt16
-rw-r--r--source/gameengine/GamePlayer/CMakeLists.txt10
-rw-r--r--source/gameengine/GamePlayer/common/CMakeLists.txt8
-rw-r--r--source/gameengine/GamePlayer/ghost/CMakeLists.txt14
-rw-r--r--source/gameengine/Ketsji/CMakeLists.txt34
-rw-r--r--source/gameengine/Ketsji/KXNetwork/CMakeLists.txt6
-rw-r--r--source/gameengine/Network/CMakeLists.txt6
-rw-r--r--source/gameengine/Network/LoopBackNetwork/CMakeLists.txt6
-rw-r--r--source/gameengine/Physics/Bullet/CMakeLists.txt14
-rw-r--r--source/gameengine/Physics/Dummy/CMakeLists.txt6
-rw-r--r--source/gameengine/Physics/common/CMakeLists.txt6
-rw-r--r--source/gameengine/Rasterizer/CMakeLists.txt8
-rw-r--r--source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt8
-rw-r--r--source/gameengine/SceneGraph/CMakeLists.txt6
-rw-r--r--source/gameengine/VideoTexture/CMakeLists.txt16
-rw-r--r--source/kernel/CMakeLists.txt6
89 files changed, 986 insertions, 986 deletions
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index a043dbad3b8..c13abb862b7 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -24,13 +24,13 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(blender)
+add_subdirectory(blender)
-IF(WITH_GAMEENGINE)
- ADD_SUBDIRECTORY(kernel)
- ADD_SUBDIRECTORY(gameengine)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ add_subdirectory(kernel)
+ add_subdirectory(gameengine)
+endif()
-IF(WINDOWS)
- ADD_SUBDIRECTORY(icons)
-ENDIF(WINDOWS)
+if(WINDOWS)
+ add_subdirectory(icons)
+endif()
diff --git a/source/blender/CMakeLists.txt b/source/blender/CMakeLists.txt
index 470f395353c..c1696b14232 100644
--- a/source/blender/CMakeLists.txt
+++ b/source/blender/CMakeLists.txt
@@ -24,45 +24,45 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(editors)
-ADD_SUBDIRECTORY(windowmanager)
-ADD_SUBDIRECTORY(blenkernel)
-ADD_SUBDIRECTORY(blenlib)
-ADD_SUBDIRECTORY(render)
-ADD_SUBDIRECTORY(blenfont)
-ADD_SUBDIRECTORY(blenloader)
-ADD_SUBDIRECTORY(readblenfile)
-ADD_SUBDIRECTORY(blenpluginapi)
-ADD_SUBDIRECTORY(ikplugin)
-ADD_SUBDIRECTORY(gpu)
-ADD_SUBDIRECTORY(imbuf)
-ADD_SUBDIRECTORY(avi)
-ADD_SUBDIRECTORY(nodes)
-ADD_SUBDIRECTORY(modifiers)
-ADD_SUBDIRECTORY(makesdna)
-ADD_SUBDIRECTORY(makesrna)
+add_subdirectory(editors)
+add_subdirectory(windowmanager)
+add_subdirectory(blenkernel)
+add_subdirectory(blenlib)
+add_subdirectory(render)
+add_subdirectory(blenfont)
+add_subdirectory(blenloader)
+add_subdirectory(readblenfile)
+add_subdirectory(blenpluginapi)
+add_subdirectory(ikplugin)
+add_subdirectory(gpu)
+add_subdirectory(imbuf)
+add_subdirectory(avi)
+add_subdirectory(nodes)
+add_subdirectory(modifiers)
+add_subdirectory(makesdna)
+add_subdirectory(makesrna)
-IF(WITH_IMAGE_OPENEXR)
- ADD_SUBDIRECTORY(imbuf/intern/openexr)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_subdirectory(imbuf/intern/openexr)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_SUBDIRECTORY(imbuf/intern/dds)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_subdirectory(imbuf/intern/dds)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_SUBDIRECTORY(imbuf/intern/cineon)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_subdirectory(imbuf/intern/cineon)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- ADD_SUBDIRECTORY(quicktime)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ add_subdirectory(quicktime)
+endif()
-IF(WITH_PYTHON)
- ADD_SUBDIRECTORY(python)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_subdirectory(python)
+endif()
-IF(WITH_OPENCOLLADA)
- ADD_SUBDIRECTORY(collada)
-ENDIF(WITH_OPENCOLLADA)
+if(WITH_OPENCOLLADA)
+ add_subdirectory(collada)
+endif()
diff --git a/source/blender/avi/CMakeLists.txt b/source/blender/avi/CMakeLists.txt
index 917b2a8e3b0..376c1147a71 100644
--- a/source/blender/avi/CMakeLists.txt
+++ b/source/blender/avi/CMakeLists.txt
@@ -24,13 +24,13 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../intern/guardedalloc
${JPEG_INC}
)
-SET(SRC
+set(SRC
intern/avi.c
intern/avirgb.c
intern/codecs.c
@@ -47,4 +47,4 @@ SET(SRC
intern/rgb32.h
)
-BLENDERLIB(bf_avi "${SRC}" "${INC}")
+blenderlib(bf_avi "${SRC}" "${INC}")
diff --git a/source/blender/blenfont/CMakeLists.txt b/source/blender/blenfont/CMakeLists.txt
index 202a8de687f..1dc546bd6d5 100644
--- a/source/blender/blenfont/CMakeLists.txt
+++ b/source/blender/blenfont/CMakeLists.txt
@@ -22,7 +22,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../blenlib
../makesdna
@@ -33,7 +33,7 @@ SET(INC
${FREETYPE_INCLUDE_DIRS}
)
-SET(SRC
+set(SRC
intern/blf.c
intern/blf_dir.c
intern/blf_font.c
@@ -47,14 +47,14 @@ SET(SRC
intern/blf_internal_types.h
)
-IF(WITH_INTERNATIONAL)
- LIST(APPEND INC ${GETTEXT_INC})
- ADD_DEFINITIONS(-DINTERNATIONAL)
-ENDIF(WITH_INTERNATIONAL)
+if(WITH_INTERNATIONAL)
+ list(APPEND INC ${GETTEXT_INC})
+ add_definitions(-DINTERNATIONAL)
+endif()
-IF(WIN32 AND NOT UNIX)
- ADD_DEFINITIONS(-DUSE_GETTEXT_DLL)
-ENDIF(WIN32 AND NOT UNIX)
+if(WIN32 AND NOT UNIX)
+ add_definitions(-DUSE_GETTEXT_DLL)
+endif()
-BLENDERLIB(bf_blenfont "${SRC}" "${INC}")
+blenderlib(bf_blenfont "${SRC}" "${INC}")
diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt
index 583f0327e07..feeda03773b 100644
--- a/source/blender/blenkernel/CMakeLists.txt
+++ b/source/blender/blenkernel/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../avi
../blenlib
@@ -52,7 +52,7 @@ SET(INC
${ZLIB_INC}
)
-SET(SRC
+set(SRC
intern/BME_Customdata.c
intern/BME_conversions.c
intern/BME_eulers.c
@@ -225,81 +225,81 @@ SET(SRC
nla_private.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-IF(WITH_BULLET)
- LIST(APPEND INC ../../../extern/bullet2/src)
- ADD_DEFINITIONS(-DUSE_BULLET)
-ENDIF(WITH_BULLET)
+if(WITH_BULLET)
+ list(APPEND INC ../../../extern/bullet2/src)
+ add_definitions(-DUSE_BULLET)
+endif()
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_OPENJPEG)
- ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG)
+ add_definitions(-DWITH_OPENJPEG)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_IMAGE_HDR)
- ADD_DEFINITIONS(-DWITH_HDR)
-ENDIF(WITH_IMAGE_HDR)
+if(WITH_IMAGE_HDR)
+ add_definitions(-DWITH_HDR)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ../quicktime ${QUICKTIME_INC})
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_CODEC_FFMPEG)
- LIST(APPEND INC ${FFMPEG_INC})
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ list(APPEND INC ${FFMPEG_INC})
+ add_definitions(-DWITH_FFMPEG)
+endif()
-IF(WITH_LCMS)
- LIST(APPEND INC ${LCMS_INCLUDE_DIR})
- ADD_DEFINITIONS(-DWITH_LCMS)
-ENDIF(WITH_LCMS)
+if(WITH_LCMS)
+ list(APPEND INC ${LCMS_INCLUDE_DIR})
+ add_definitions(-DWITH_LCMS)
+endif()
-IF(WITH_PYTHON)
- LIST(APPEND INC ../python ${PYTHON_INC})
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ list(APPEND INC ../python ${PYTHON_INC})
+ add_definitions(-DWITH_PYTHON)
+endif()
-IF(WITH_OPENMP)
- ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_OPENMP)
+ add_definitions(-DPARALLEL=1)
+endif()
-IF(NOT WITH_MOD_FLUID)
- ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_MOD_FLUID)
+if(NOT WITH_MOD_FLUID)
+ add_definitions(-DDISABLE_ELBEEM)
+endif()
-IF(WITH_JACK)
- ADD_DEFINITIONS(-DWITH_JACK)
-ENDIF(WITH_JACK)
+if(WITH_JACK)
+ add_definitions(-DWITH_JACK)
+endif()
-IF(WITH_LZO)
- LIST(APPEND INC ../../../extern/lzo/minilzo)
- ADD_DEFINITIONS(-DWITH_LZO)
-ENDIF(WITH_LZO)
+if(WITH_LZO)
+ list(APPEND INC ../../../extern/lzo/minilzo)
+ add_definitions(-DWITH_LZO)
+endif()
-IF(WITH_LZMA)
- LIST(APPEND INC ../../../extern/lzma)
- ADD_DEFINITIONS(-DWITH_LZMA)
-ENDIF(WITH_LZMA)
+if(WITH_LZMA)
+ list(APPEND INC ../../../extern/lzma)
+ add_definitions(-DWITH_LZMA)
+endif()
-IF(MSVC)
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
-ENDIF(MSVC)
+if(MSVC)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /WX")
+endif()
-BLENDERLIB(bf_blenkernel "${SRC}" "${INC}")
+blenderlib(bf_blenkernel "${SRC}" "${INC}")
diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt
index a30cbebb539..a827c7879e1 100644
--- a/source/blender/blenlib/CMakeLists.txt
+++ b/source/blender/blenlib/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../makesdna
../blenkernel
@@ -35,7 +35,7 @@ SET(INC
${FREETYPE_INCLUDE_DIRS}
)
-SET(SRC
+set(SRC
intern/BLI_args.c
intern/BLI_dynstr.c
intern/BLI_ghash.c
@@ -131,12 +131,12 @@ SET(SRC
intern/dynamiclist.h
)
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
- LIST(APPEND INC "${BINRELOC_INC}")
-ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND INC "${BINRELOC_INC}")
+endif()
-IF(WITH_OPENMP)
- ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_OPENMP)
+ add_definitions(-DPARALLEL=1)
+endif()
-BLENDERLIB(bf_blenlib "${SRC}" "${INC}")
+blenderlib(bf_blenlib "${SRC}" "${INC}")
diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt
index b84ee1df08d..2d80d565af1 100644
--- a/source/blender/blenloader/CMakeLists.txt
+++ b/source/blender/blenloader/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../blenlib
../blenkernel
@@ -36,7 +36,7 @@ SET(INC
${ZLIB_INC}
)
-SET(SRC
+set(SRC
intern/readblenentry.c
intern/readfile.c
intern/undofile.c
@@ -50,4 +50,4 @@ SET(SRC
intern/readfile.h
)
-BLENDERLIB(bf_blenloader "${SRC}" "${INC}")
+blenderlib(bf_blenloader "${SRC}" "${INC}")
diff --git a/source/blender/blenpluginapi/CMakeLists.txt b/source/blender/blenpluginapi/CMakeLists.txt
index 0e2e8526747..8005afc5615 100644
--- a/source/blender/blenpluginapi/CMakeLists.txt
+++ b/source/blender/blenpluginapi/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
..
../blenlib
@@ -33,7 +33,7 @@ SET(INC
../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
intern/pluginapi.c
documentation.h
@@ -44,9 +44,9 @@ SET(SRC
util.h
)
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ${QUICKTIME_INC})
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ${QUICKTIME_INC})
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-BLENDERLIB(bf_blenpluginapi "${SRC}" "${INC}")
+blenderlib(bf_blenpluginapi "${SRC}" "${INC}")
diff --git a/source/blender/collada/CMakeLists.txt b/source/blender/collada/CMakeLists.txt
index 9d33885eb59..e0d53d2c2e4 100644
--- a/source/blender/collada/CMakeLists.txt
+++ b/source/blender/collada/CMakeLists.txt
@@ -24,9 +24,9 @@
#
# ***** END GPL LICENSE BLOCK *****
-REMOVE_STRICT_FLAGS()
+remove_strict_flags()
-SET(INC
+set(INC
.
../blenlib
../blenkernel
@@ -37,23 +37,23 @@ SET(INC
../../../intern/guardedalloc
)
-IF(APPLE)
- LIST(APPEND INC
+if(APPLE)
+ list(APPEND INC
${OPENCOLLADA_INC}/COLLADAStreamWriter
${OPENCOLLADA_INC}/COLLADABaseUtils
${OPENCOLLADA_INC}/COLLADAFramework
${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader
)
-ELSE(APPLE)
- LIST(APPEND INC
+else()
+ list(APPEND INC
${OPENCOLLADA_INC}/COLLADAStreamWriter/include
${OPENCOLLADA_INC}/COLLADABaseUtils/include
${OPENCOLLADA_INC}/COLLADAFramework/include
${OPENCOLLADA_INC}/COLLADASaxFrameworkLoader/include
)
-ENDIF(APPLE)
+endif()
-SET(SRC
+set(SRC
AnimationImporter.cpp
ArmatureExporter.cpp
ArmatureImporter.cpp
@@ -95,8 +95,8 @@ SET(SRC
collada_utils.h
)
-IF(WITH_BUILDINFO)
- ADD_DEFINITIONS(-DNAN_BUILDINFO)
-ENDIF(WITH_BUILDINFO)
+if(WITH_BUILDINFO)
+ add_definitions(-DNAN_BUILDINFO)
+endif()
-BLENDERLIB(bf_collada "${SRC}" "${INC}")
+blenderlib(bf_collada "${SRC}" "${INC}")
diff --git a/source/blender/editors/CMakeLists.txt b/source/blender/editors/CMakeLists.txt
index 5d3cee9a7a5..651cb66833d 100644
--- a/source/blender/editors/CMakeLists.txt
+++ b/source/blender/editors/CMakeLists.txt
@@ -19,39 +19,39 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(animation)
-ADD_SUBDIRECTORY(armature)
-ADD_SUBDIRECTORY(curve)
-ADD_SUBDIRECTORY(datafiles)
-ADD_SUBDIRECTORY(gpencil)
-ADD_SUBDIRECTORY(interface)
-ADD_SUBDIRECTORY(mesh)
-ADD_SUBDIRECTORY(metaball)
-ADD_SUBDIRECTORY(object)
-ADD_SUBDIRECTORY(physics)
-ADD_SUBDIRECTORY(render)
-ADD_SUBDIRECTORY(screen)
-ADD_SUBDIRECTORY(sculpt_paint)
-ADD_SUBDIRECTORY(sound)
-ADD_SUBDIRECTORY(space_action)
-ADD_SUBDIRECTORY(space_api)
-ADD_SUBDIRECTORY(space_buttons)
-ADD_SUBDIRECTORY(space_console)
-ADD_SUBDIRECTORY(space_file)
-ADD_SUBDIRECTORY(space_graph)
-ADD_SUBDIRECTORY(space_image)
-ADD_SUBDIRECTORY(space_info)
-ADD_SUBDIRECTORY(space_logic)
-ADD_SUBDIRECTORY(space_nla)
-ADD_SUBDIRECTORY(space_node)
-ADD_SUBDIRECTORY(space_outliner)
-ADD_SUBDIRECTORY(space_script)
-ADD_SUBDIRECTORY(space_sequencer)
-ADD_SUBDIRECTORY(space_sound)
-ADD_SUBDIRECTORY(space_text)
-ADD_SUBDIRECTORY(space_time)
-ADD_SUBDIRECTORY(space_userpref)
-ADD_SUBDIRECTORY(space_view3d)
-ADD_SUBDIRECTORY(transform)
-ADD_SUBDIRECTORY(util)
-ADD_SUBDIRECTORY(uvedit)
+add_subdirectory(animation)
+add_subdirectory(armature)
+add_subdirectory(curve)
+add_subdirectory(datafiles)
+add_subdirectory(gpencil)
+add_subdirectory(interface)
+add_subdirectory(mesh)
+add_subdirectory(metaball)
+add_subdirectory(object)
+add_subdirectory(physics)
+add_subdirectory(render)
+add_subdirectory(screen)
+add_subdirectory(sculpt_paint)
+add_subdirectory(sound)
+add_subdirectory(space_action)
+add_subdirectory(space_api)
+add_subdirectory(space_buttons)
+add_subdirectory(space_console)
+add_subdirectory(space_file)
+add_subdirectory(space_graph)
+add_subdirectory(space_image)
+add_subdirectory(space_info)
+add_subdirectory(space_logic)
+add_subdirectory(space_nla)
+add_subdirectory(space_node)
+add_subdirectory(space_outliner)
+add_subdirectory(space_script)
+add_subdirectory(space_sequencer)
+add_subdirectory(space_sound)
+add_subdirectory(space_text)
+add_subdirectory(space_time)
+add_subdirectory(space_userpref)
+add_subdirectory(space_view3d)
+add_subdirectory(transform)
+add_subdirectory(util)
+add_subdirectory(uvedit)
diff --git a/source/blender/editors/animation/CMakeLists.txt b/source/blender/editors/animation/CMakeLists.txt
index 1e0a42fcd4e..64677282bf5 100644
--- a/source/blender/editors/animation/CMakeLists.txt
+++ b/source/blender/editors/animation/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
anim_channels_defines.c
anim_channels_edit.c
anim_deps.c
@@ -49,4 +49,4 @@ SET(SRC
anim_intern.h
)
-BLENDERLIB(bf_editor_animation "${SRC}" "${INC}")
+blenderlib(bf_editor_animation "${SRC}" "${INC}")
diff --git a/source/blender/editors/armature/CMakeLists.txt b/source/blender/editors/armature/CMakeLists.txt
index e4243f77074..8db4d3b2d73 100644
--- a/source/blender/editors/armature/CMakeLists.txt
+++ b/source/blender/editors/armature/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/opennl/extern
)
-SET(SRC
+set(SRC
armature_ops.c
editarmature.c
editarmature_generate.c
@@ -50,4 +50,4 @@ SET(SRC
reeb.h
)
-BLENDERLIB(bf_editor_armature "${SRC}" "${INC}")
+blenderlib(bf_editor_armature "${SRC}" "${INC}")
diff --git a/source/blender/editors/curve/CMakeLists.txt b/source/blender/editors/curve/CMakeLists.txt
index 577a144805f..c828ed87497 100644
--- a/source/blender/editors/curve/CMakeLists.txt
+++ b/source/blender/editors/curve/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
curve_ops.c
editcurve.c
editfont.c
@@ -38,4 +38,4 @@ SET(SRC
curve_intern.h
)
-BLENDERLIB(bf_editor_curve "${SRC}" "${INC}")
+blenderlib(bf_editor_curve "${SRC}" "${INC}")
diff --git a/source/blender/editors/datafiles/CMakeLists.txt b/source/blender/editors/datafiles/CMakeLists.txt
index 7683db8ab7a..df0c4331195 100644
--- a/source/blender/editors/datafiles/CMakeLists.txt
+++ b/source/blender/editors/datafiles/CMakeLists.txt
@@ -19,9 +19,9 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC "")
+set(INC "")
-SET(SRC
+set(SRC
Bfont.c
add.png.c
bfont.ttf.c
@@ -60,4 +60,4 @@ SET(SRC
vertexdraw.png.c
)
-BLENDERLIB(bf_editor_datafiles "${SRC}" "${INC}")
+blenderlib(bf_editor_datafiles "${SRC}" "${INC}")
diff --git a/source/blender/editors/gpencil/CMakeLists.txt b/source/blender/editors/gpencil/CMakeLists.txt
index 8e884149bb8..544ee83b83d 100644
--- a/source/blender/editors/gpencil/CMakeLists.txt
+++ b/source/blender/editors/gpencil/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
drawgpencil.c
editaction_gpencil.c
gpencil_buttons.c
@@ -41,4 +41,4 @@ SET(SRC
gpencil_intern.h
)
-BLENDERLIB(bf_editor_gpencil "${SRC}" "${INC}")
+blenderlib(bf_editor_gpencil "${SRC}" "${INC}")
diff --git a/source/blender/editors/interface/CMakeLists.txt b/source/blender/editors/interface/CMakeLists.txt
index 80eddcfc08d..79fd3cc3b8e 100644
--- a/source/blender/editors/interface/CMakeLists.txt
+++ b/source/blender/editors/interface/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -33,7 +33,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
interface.c
interface_anim.c
interface_draw.c
@@ -54,12 +54,12 @@ SET(SRC
interface_intern.h
)
-IF(WITH_INTERNATIONAL)
- ADD_DEFINITIONS(-DINTERNATIONAL)
-ENDIF(WITH_INTERNATIONAL)
+if(WITH_INTERNATIONAL)
+ add_definitions(-DINTERNATIONAL)
+endif()
-IF(WITH_PYTHON)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_editor_interface "${SRC}" "${INC}")
+blenderlib(bf_editor_interface "${SRC}" "${INC}")
diff --git a/source/blender/editors/mesh/CMakeLists.txt b/source/blender/editors/mesh/CMakeLists.txt
index 977cbb79b7f..7a15d3a9edb 100644
--- a/source/blender/editors/mesh/CMakeLists.txt
+++ b/source/blender/editors/mesh/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
editface.c
editmesh.c
editmesh_add.c
@@ -47,4 +47,4 @@ SET(SRC
mesh_intern.h
)
-BLENDERLIB(bf_editor_mesh "${SRC}" "${INC}")
+blenderlib(bf_editor_mesh "${SRC}" "${INC}")
diff --git a/source/blender/editors/metaball/CMakeLists.txt b/source/blender/editors/metaball/CMakeLists.txt
index 82e287c3e69..f6a58f7812e 100644
--- a/source/blender/editors/metaball/CMakeLists.txt
+++ b/source/blender/editors/metaball/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,11 +30,11 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
mball_edit.c
mball_ops.c
mball_intern.h
)
-BLENDERLIB(bf_editor_metaball "${SRC}" "${INC}")
+blenderlib(bf_editor_metaball "${SRC}" "${INC}")
diff --git a/source/blender/editors/object/CMakeLists.txt b/source/blender/editors/object/CMakeLists.txt
index 6fc06ab20c6..8aad3a1f6db 100644
--- a/source/blender/editors/object/CMakeLists.txt
+++ b/source/blender/editors/object/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -34,7 +34,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
object_add.c
object_bake.c
object_constraint.c
@@ -53,8 +53,8 @@ SET(SRC
object_intern.h
)
-IF(WITH_PYTHON)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_editor_object "${SRC}" "${INC}")
+blenderlib(bf_editor_object "${SRC}" "${INC}")
diff --git a/source/blender/editors/physics/CMakeLists.txt b/source/blender/editors/physics/CMakeLists.txt
index da7247e264a..911d1e90458 100644
--- a/source/blender/editors/physics/CMakeLists.txt
+++ b/source/blender/editors/physics/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
particle_boids.c
particle_edit.c
particle_object.c
@@ -41,12 +41,12 @@ SET(SRC
physics_intern.h
)
-IF(NOT WITH_MOD_FLUID)
- ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_MOD_FLUID)
+if(NOT WITH_MOD_FLUID)
+ add_definitions(-DDISABLE_ELBEEM)
+endif()
-IF(WITH_OPENMP)
- ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_OPENMP)
+ add_definitions(-DPARALLEL=1)
+endif()
-BLENDERLIB(bf_editor_physics "${SRC}" "${INC}")
+blenderlib(bf_editor_physics "${SRC}" "${INC}")
diff --git a/source/blender/editors/render/CMakeLists.txt b/source/blender/editors/render/CMakeLists.txt
index 670fa55d998..2c3f4a78c8f 100644
--- a/source/blender/editors/render/CMakeLists.txt
+++ b/source/blender/editors/render/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -35,7 +35,7 @@ SET(INC
../../../../extern/glew/include
)
-SET(SRC
+set(SRC
render_internal.c
render_opengl.c
render_ops.c
@@ -45,13 +45,13 @@ SET(SRC
render_intern.h
)
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ../../quicktime ${QUICKTIME_INC})
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ../../quicktime ${QUICKTIME_INC})
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_OPENMP)
- ADD_DEFINITIONS(-DPARALLEL=1)
-ENDIF(WITH_OPENMP)
+if(WITH_OPENMP)
+ add_definitions(-DPARALLEL=1)
+endif()
-BLENDERLIB(bf_editor_render "${SRC}" "${INC}")
+blenderlib(bf_editor_render "${SRC}" "${INC}")
diff --git a/source/blender/editors/screen/CMakeLists.txt b/source/blender/editors/screen/CMakeLists.txt
index a7483c60c85..0f81d4fb382 100644
--- a/source/blender/editors/screen/CMakeLists.txt
+++ b/source/blender/editors/screen/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
area.c
glutil.c
screen_context.c
@@ -42,4 +42,4 @@ SET(SRC
screen_intern.h
)
-BLENDERLIB(bf_editor_screen "${SRC}" "${INC}")
+blenderlib(bf_editor_screen "${SRC}" "${INC}")
diff --git a/source/blender/editors/sculpt_paint/CMakeLists.txt b/source/blender/editors/sculpt_paint/CMakeLists.txt
index 5f5211368f2..bb6901288ff 100644
--- a/source/blender/editors/sculpt_paint/CMakeLists.txt
+++ b/source/blender/editors/sculpt_paint/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../imbuf
@@ -32,7 +32,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
paint_image.c
paint_ops.c
paint_stroke.c
@@ -46,4 +46,4 @@ SET(SRC
sculpt_intern.h
)
-BLENDERLIB(bf_editor_sculpt_paint "${SRC}" "${INC}")
+blenderlib(bf_editor_sculpt_paint "${SRC}" "${INC}")
diff --git a/source/blender/editors/sound/CMakeLists.txt b/source/blender/editors/sound/CMakeLists.txt
index d1314f649ee..927632f5a98 100644
--- a/source/blender/editors/sound/CMakeLists.txt
+++ b/source/blender/editors/sound/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,10 +30,10 @@ SET(INC
../../../../intern/audaspace/intern
)
-SET(SRC
+set(SRC
sound_ops.c
sound_intern.h
)
-BLENDERLIB(bf_editor_sound "${SRC}" "${INC}")
+blenderlib(bf_editor_sound "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_action/CMakeLists.txt b/source/blender/editors/space_action/CMakeLists.txt
index 44981a3177b..5bfd01d461c 100644
--- a/source/blender/editors/space_action/CMakeLists.txt
+++ b/source/blender/editors/space_action/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
action_draw.c
action_edit.c
action_ops.c
@@ -39,4 +39,4 @@ SET(SRC
action_intern.h
)
-BLENDERLIB(bf_editor_space_action "${SRC}" "${INC}")
+blenderlib(bf_editor_space_action "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_api/CMakeLists.txt b/source/blender/editors/space_api/CMakeLists.txt
index 5436d8207c5..fc20f8f9895 100644
--- a/source/blender/editors/space_api/CMakeLists.txt
+++ b/source/blender/editors/space_api/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,9 +29,9 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
space.c
spacetypes.c
)
-BLENDERLIB(bf_editor_space_api "${SRC}" "${INC}")
+blenderlib(bf_editor_space_api "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_buttons/CMakeLists.txt b/source/blender/editors/space_buttons/CMakeLists.txt
index 47152bea9f0..767536e3814 100644
--- a/source/blender/editors/space_buttons/CMakeLists.txt
+++ b/source/blender/editors/space_buttons/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
buttons_context.c
buttons_header.c
buttons_ops.c
@@ -38,4 +38,4 @@ SET(SRC
buttons_intern.h
)
-BLENDERLIB(bf_editor_space_buttons "${SRC}" "${INC}")
+blenderlib(bf_editor_space_buttons "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_console/CMakeLists.txt b/source/blender/editors/space_console/CMakeLists.txt
index 75eb20dfdc1..fe475b88092 100644
--- a/source/blender/editors/space_console/CMakeLists.txt
+++ b/source/blender/editors/space_console/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
console_draw.c
console_ops.c
space_console.c
@@ -39,8 +39,8 @@ SET(SRC
console_intern.h
)
-IF(WITH_PYTHON)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_editor_space_console "${SRC}" "${INC}")
+blenderlib(bf_editor_space_console "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_file/CMakeLists.txt b/source/blender/editors/space_file/CMakeLists.txt
index d4e5d599c52..b4a70917ca8 100644
--- a/source/blender/editors/space_file/CMakeLists.txt
+++ b/source/blender/editors/space_file/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -33,7 +33,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
file_draw.c
file_ops.c
file_panels.c
@@ -47,28 +47,28 @@ SET(SRC
fsmenu.h
)
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_OPENJPEG)
- ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG)
+ add_definitions(-DWITH_OPENJPEG)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_IMAGE_HDR)
- ADD_DEFINITIONS(-DWITH_HDR)
-ENDIF(WITH_IMAGE_HDR)
+if(WITH_IMAGE_HDR)
+ add_definitions(-DWITH_HDR)
+endif()
-BLENDERLIB(bf_editor_space_file "${SRC}" "${INC}")
+blenderlib(bf_editor_space_file "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_graph/CMakeLists.txt b/source/blender/editors/space_graph/CMakeLists.txt
index 2c1bdbed210..248bc9c76c5 100644
--- a/source/blender/editors/space_graph/CMakeLists.txt
+++ b/source/blender/editors/space_graph/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/audaspace/intern
)
-SET(SRC
+set(SRC
graph_buttons.c
graph_draw.c
graph_edit.c
@@ -42,4 +42,4 @@ SET(SRC
graph_intern.h
)
-BLENDERLIB(bf_editor_space_graph "${SRC}" "${INC}")
+blenderlib(bf_editor_space_graph "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_image/CMakeLists.txt b/source/blender/editors/space_image/CMakeLists.txt
index 67639539c40..31c2e9568ae 100644
--- a/source/blender/editors/space_image/CMakeLists.txt
+++ b/source/blender/editors/space_image/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -32,7 +32,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
image_buttons.c
image_draw.c
image_header.c
@@ -43,25 +43,25 @@ SET(SRC
image_intern.h
)
-IF(WITH_IMAGE_OPENJPEG)
- ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG)
+ add_definitions(-DWITH_OPENJPEG)
+endif()
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_LCMS)
- SET(INC ${INC} ${LCMS_INCLUDE_DIR})
- ADD_DEFINITIONS(-DWITH_LCMS)
-ENDIF(WITH_LCMS)
+if(WITH_LCMS)
+ set(INC ${INC} ${LCMS_INCLUDE_DIR})
+ add_definitions(-DWITH_LCMS)
+endif()
-BLENDERLIB(bf_editor_space_image "${SRC}" "${INC}")
+blenderlib(bf_editor_space_image "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_info/CMakeLists.txt b/source/blender/editors/space_info/CMakeLists.txt
index 4592a07ed85..69748041996 100644
--- a/source/blender/editors/space_info/CMakeLists.txt
+++ b/source/blender/editors/space_info/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
info_ops.c
info_stats.c
info_draw.c
@@ -43,4 +43,4 @@ SET(SRC
textview.h
)
-BLENDERLIB(bf_editor_space_info "${SRC}" "${INC}")
+blenderlib(bf_editor_space_info "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_logic/CMakeLists.txt b/source/blender/editors/space_logic/CMakeLists.txt
index 7fcacb393af..18e546a61f5 100644
--- a/source/blender/editors/space_logic/CMakeLists.txt
+++ b/source/blender/editors/space_logic/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
logic_buttons.c
logic_ops.c
logic_window.c
@@ -39,8 +39,8 @@ SET(SRC
logic_intern.h
)
-IF(WITH_GAMEENGINE)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-BLENDERLIB(bf_editor_space_logic "${SRC}" "${INC}")
+blenderlib(bf_editor_space_logic "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_nla/CMakeLists.txt b/source/blender/editors/space_nla/CMakeLists.txt
index 82d32d80442..dcb09a1a654 100644
--- a/source/blender/editors/space_nla/CMakeLists.txt
+++ b/source/blender/editors/space_nla/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
nla_buttons.c
nla_channels.c
nla_draw.c
@@ -41,4 +41,4 @@ SET(SRC
nla_intern.h
)
-BLENDERLIB(bf_editor_space_nla "${SRC}" "${INC}")
+blenderlib(bf_editor_space_nla "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_node/CMakeLists.txt b/source/blender/editors/space_node/CMakeLists.txt
index 1513f688e2c..45b4341c99d 100644
--- a/source/blender/editors/space_node/CMakeLists.txt
+++ b/source/blender/editors/space_node/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -33,7 +33,7 @@ SET(INC
../../../../intern/opennl/extern
)
-SET(SRC
+set(SRC
drawnode.c
node_buttons.c
node_draw.c
@@ -47,4 +47,4 @@ SET(SRC
node_intern.h
)
-BLENDERLIB(bf_editor_space_node "${SRC}" "${INC}")
+blenderlib(bf_editor_space_node "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_outliner/CMakeLists.txt b/source/blender/editors/space_outliner/CMakeLists.txt
index b9383ef6388..dc8e944dbca 100644
--- a/source/blender/editors/space_outliner/CMakeLists.txt
+++ b/source/blender/editors/space_outliner/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/opennl/extern
)
-SET(SRC
+set(SRC
outliner.c
outliner_ops.c
space_outliner.c
@@ -39,4 +39,4 @@ SET(SRC
outliner_intern.h
)
-BLENDERLIB(bf_editor_space_outliner "${SRC}" "${INC}")
+blenderlib(bf_editor_space_outliner "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_script/CMakeLists.txt b/source/blender/editors/space_script/CMakeLists.txt
index da4f90a103f..849c4ee4dcd 100644
--- a/source/blender/editors/space_script/CMakeLists.txt
+++ b/source/blender/editors/space_script/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
script_edit.c
script_header.c
script_ops.c
@@ -38,9 +38,9 @@ SET(SRC
script_intern.h
)
-IF(WITH_PYTHON)
- LIST(APPEND INC ${PYTHON_INC} ../../python)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ list(APPEND INC ${PYTHON_INC} ../../python)
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_editor_space_script "${SRC}" "${INC}")
+blenderlib(bf_editor_space_script "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_sequencer/CMakeLists.txt b/source/blender/editors/space_sequencer/CMakeLists.txt
index 0fe9cc3580b..721d19a37cf 100644
--- a/source/blender/editors/space_sequencer/CMakeLists.txt
+++ b/source/blender/editors/space_sequencer/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -31,7 +31,7 @@ SET(INC
../../../../intern/audaspace/intern
)
-SET(SRC
+set(SRC
sequencer_add.c
sequencer_buttons.c
sequencer_draw.c
@@ -44,4 +44,4 @@ SET(SRC
sequencer_intern.h
)
-BLENDERLIB(bf_editor_space_sequencer "${SRC}" "${INC}")
+blenderlib(bf_editor_space_sequencer "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_sound/CMakeLists.txt b/source/blender/editors/space_sound/CMakeLists.txt
index 90a522b8f3f..bd60c0feb01 100644
--- a/source/blender/editors/space_sound/CMakeLists.txt
+++ b/source/blender/editors/space_sound/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,11 +29,11 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
sound_header.c
space_sound.c
sound_intern.h
)
-BLENDERLIB(bf_editor_space_sound "${SRC}" "${INC}")
+blenderlib(bf_editor_space_sound "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_text/CMakeLists.txt b/source/blender/editors/space_text/CMakeLists.txt
index acfb2f315f8..86e2f3f3ac5 100644
--- a/source/blender/editors/space_text/CMakeLists.txt
+++ b/source/blender/editors/space_text/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
space_text.c
text_draw.c
text_header.c
@@ -40,9 +40,9 @@ SET(SRC
text_intern.h
)
-IF(WITH_PYTHON)
- LIST(APPEND INC ${PYTHON_INC} ../../python)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ list(APPEND INC ${PYTHON_INC} ../../python)
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_editor_text "${SRC}" "${INC}")
+blenderlib(bf_editor_text "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_time/CMakeLists.txt b/source/blender/editors/space_time/CMakeLists.txt
index ad1df116081..cbfce4c5cc2 100644
--- a/source/blender/editors/space_time/CMakeLists.txt
+++ b/source/blender/editors/space_time/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,11 +29,11 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
space_time.c
time_ops.c
time_intern.h
)
-BLENDERLIB(bf_editor_space_time "${SRC}" "${INC}")
+blenderlib(bf_editor_space_time "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_userpref/CMakeLists.txt b/source/blender/editors/space_userpref/CMakeLists.txt
index d90092f75d0..15ae90056b1 100644
--- a/source/blender/editors/space_userpref/CMakeLists.txt
+++ b/source/blender/editors/space_userpref/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,11 +29,11 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
space_userpref.c
userpref_ops.c
userpref_intern.h
)
-BLENDERLIB(bf_editor_space_userpref "${SRC}" "${INC}")
+blenderlib(bf_editor_space_userpref "${SRC}" "${INC}")
diff --git a/source/blender/editors/space_view3d/CMakeLists.txt b/source/blender/editors/space_view3d/CMakeLists.txt
index 36bc9c037a8..0e4c9ca6aa3 100644
--- a/source/blender/editors/space_view3d/CMakeLists.txt
+++ b/source/blender/editors/space_view3d/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenfont
../../blenkernel
@@ -34,7 +34,7 @@ SET(INC
../../../../intern/smoke/extern
)
-SET(SRC
+set(SRC
drawanimviz.c
drawarmature.c
drawmesh.c
@@ -55,11 +55,11 @@ SET(SRC
view3d_intern.h
)
-IF(WITH_GAMEENGINE)
- LIST(APPEND INC ../../../kernel/gen_system)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ list(APPEND INC ../../../kernel/gen_system)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-BLENDERLIB(bf_editor_space_view3d "${SRC}" "${INC}")
+blenderlib(bf_editor_space_view3d "${SRC}" "${INC}")
diff --git a/source/blender/editors/transform/CMakeLists.txt b/source/blender/editors/transform/CMakeLists.txt
index 6f4d1ff3aaa..5e759bf1ee0 100644
--- a/source/blender/editors/transform/CMakeLists.txt
+++ b/source/blender/editors/transform/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
transform.c
transform_constraints.c
transform_conversions.c
@@ -44,4 +44,4 @@ SET(SRC
transform.h
)
-BLENDERLIB(bf_editor_transform "${SRC}" "${INC}")
+blenderlib(bf_editor_transform "${SRC}" "${INC}")
diff --git a/source/blender/editors/util/CMakeLists.txt b/source/blender/editors/util/CMakeLists.txt
index 65b52b876fa..61ba1bb6c74 100644
--- a/source/blender/editors/util/CMakeLists.txt
+++ b/source/blender/editors/util/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -29,7 +29,7 @@ SET(INC
../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
ed_util.c
editmode_undo.c
numinput.c
@@ -82,4 +82,4 @@ SET(SRC
../include/UI_view2d.h
)
-BLENDERLIB(bf_editor_util "${SRC}" "${INC}")
+blenderlib(bf_editor_util "${SRC}" "${INC}")
diff --git a/source/blender/editors/uvedit/CMakeLists.txt b/source/blender/editors/uvedit/CMakeLists.txt
index 1cec055eb7f..92ee3bea8d5 100644
--- a/source/blender/editors/uvedit/CMakeLists.txt
+++ b/source/blender/editors/uvedit/CMakeLists.txt
@@ -19,7 +19,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../include
../../blenkernel
../../blenlib
@@ -30,7 +30,7 @@ SET(INC
../../../../intern/opennl/extern
)
-SET(SRC
+set(SRC
uvedit_draw.c
uvedit_ops.c
uvedit_parametrizer.c
@@ -40,4 +40,4 @@ SET(SRC
uvedit_parametrizer.h
)
-BLENDERLIB(bf_editor_uvedit "${SRC}" "${INC}")
+blenderlib(bf_editor_uvedit "${SRC}" "${INC}")
diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt
index 63dedc75226..54257af6ea9 100644
--- a/source/blender/gpu/CMakeLists.txt
+++ b/source/blender/gpu/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../blenlib
../blenkernel
@@ -36,7 +36,7 @@ SET(INC
../../../intern/smoke/extern
)
-SET(SRC
+set(SRC
intern/gpu_buffers.c
intern/gpu_codegen.c
intern/gpu_draw.c
@@ -52,7 +52,7 @@ SET(SRC
intern/gpu_codegen.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-BLENDERLIB(bf_gpu "${SRC}" "${INC}")
+blenderlib(bf_gpu "${SRC}" "${INC}")
diff --git a/source/blender/ikplugin/CMakeLists.txt b/source/blender/ikplugin/CMakeLists.txt
index 17e09b460af..78f362be117 100644
--- a/source/blender/ikplugin/CMakeLists.txt
+++ b/source/blender/ikplugin/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../blenlib
../makesdna
../blenkernel
@@ -33,7 +33,7 @@ SET(INC
../../../intern/iksolver/extern
)
-SET(SRC
+set(SRC
intern/ikplugin_api.c
intern/iksolver_plugin.c
@@ -43,13 +43,13 @@ SET(SRC
intern/itasc_plugin.h
)
-IF(WITH_IK_ITASC)
- ADD_DEFINITIONS(-DWITH_IK_ITASC)
- LIST(APPEND INC ../../../extern/Eigen2)
- LIST(APPEND INC ../../../intern/itasc)
- LIST(APPEND SRC
+if(WITH_IK_ITASC)
+ add_definitions(-DWITH_IK_ITASC)
+ list(APPEND INC ../../../extern/Eigen2)
+ list(APPEND INC ../../../intern/itasc)
+ list(APPEND SRC
./intern/itasc_plugin.cpp
)
-ENDIF(WITH_IK_ITASC)
+endif()
-BLENDERLIB(bf_ikplugin "${SRC}" "${INC}")
+blenderlib(bf_ikplugin "${SRC}" "${INC}")
diff --git a/source/blender/imbuf/CMakeLists.txt b/source/blender/imbuf/CMakeLists.txt
index e68b2d20fa3..866a702e43f 100644
--- a/source/blender/imbuf/CMakeLists.txt
+++ b/source/blender/imbuf/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../avi
../blenlib
@@ -37,7 +37,7 @@ SET(INC
${ZLIB_INC}
)
-SET(SRC
+set(SRC
intern/allocimbuf.c
intern/anim_movie.c
intern/bmp.c
@@ -96,48 +96,48 @@ SET(SRC
intern/openexr/openexr_multi.h
)
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- LIST(APPEND INC ${TIFF_INCLUDE_DIR})
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ list(APPEND INC ${TIFF_INCLUDE_DIR})
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_OPENJPEG)
- LIST(APPEND INC ${OPENJPEG_INC})
- ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG)
+ list(APPEND INC ${OPENJPEG_INC})
+ add_definitions(-DWITH_OPENJPEG)
+endif()
-IF(WITH_IMAGE_REDCODE)
- LIST(APPEND INC ${REDCODE_INC})
- ADD_DEFINITIONS(-DWITH_REDCODE)
-ENDIF(WITH_IMAGE_REDCODE)
+if(WITH_IMAGE_REDCODE)
+ list(APPEND INC ${REDCODE_INC})
+ add_definitions(-DWITH_REDCODE)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC
../quicktime
${QUICKTIME_INC}
)
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_CODEC_FFMPEG)
- LIST(APPEND INC ${FFMPEG_INC})
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ list(APPEND INC ${FFMPEG_INC})
+ add_definitions(-DWITH_FFMPEG)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_IMAGE_HDR)
- ADD_DEFINITIONS(-DWITH_HDR)
-ENDIF(WITH_IMAGE_HDR)
+if(WITH_IMAGE_HDR)
+ add_definitions(-DWITH_HDR)
+endif()
-BLENDERLIB(bf_imbuf "${SRC}" "${INC}")
+blenderlib(bf_imbuf "${SRC}" "${INC}")
diff --git a/source/blender/imbuf/intern/cineon/CMakeLists.txt b/source/blender/imbuf/intern/cineon/CMakeLists.txt
index f4754719761..d9cfc04cf8d 100644
--- a/source/blender/imbuf/intern/cineon/CMakeLists.txt
+++ b/source/blender/imbuf/intern/cineon/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
..
../../
@@ -34,7 +34,7 @@ SET(INC
../../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
cineon_dpx.c
cineonlib.c
dpxlib.c
@@ -43,4 +43,4 @@ SET(SRC
logmemfile.c
)
-BLENDERLIB(bf_imbuf_cineon "${SRC}" "${INC}")
+blenderlib(bf_imbuf_cineon "${SRC}" "${INC}")
diff --git a/source/blender/imbuf/intern/dds/CMakeLists.txt b/source/blender/imbuf/intern/dds/CMakeLists.txt
index 5634368383d..44341c7e861 100644
--- a/source/blender/imbuf/intern/dds/CMakeLists.txt
+++ b/source/blender/imbuf/intern/dds/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
..
./intern/include
@@ -35,7 +35,7 @@ SET(INC
../../../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
BlockDXT.cpp
ColorBlock.cpp
DirectDrawSurface.cpp
@@ -45,7 +45,7 @@ SET(SRC
)
if(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-BLENDERLIB(bf_imbuf_dds "${SRC}" "${INC}")
+blenderlib(bf_imbuf_dds "${SRC}" "${INC}")
diff --git a/source/blender/imbuf/intern/openexr/CMakeLists.txt b/source/blender/imbuf/intern/openexr/CMakeLists.txt
index edea033bb3a..958abc4d1f6 100644
--- a/source/blender/imbuf/intern/openexr/CMakeLists.txt
+++ b/source/blender/imbuf/intern/openexr/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../blenkernel
../../
@@ -36,12 +36,12 @@ SET(INC
${OPENEXR_INC}
)
-SET(SRC
+set(SRC
openexr_api.cpp
)
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-BLENDERLIB(bf_imbuf_openexr "${SRC}" "${INC}")
+blenderlib(bf_imbuf_openexr "${SRC}" "${INC}")
diff --git a/source/blender/makesdna/CMakeLists.txt b/source/blender/makesdna/CMakeLists.txt
index cb61082000d..e02b33b92c1 100644
--- a/source/blender/makesdna/CMakeLists.txt
+++ b/source/blender/makesdna/CMakeLists.txt
@@ -24,4 +24,4 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(intern)
+add_subdirectory(intern)
diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt
index ca01b231982..8329c28d42e 100644
--- a/source/blender/makesdna/intern/CMakeLists.txt
+++ b/source/blender/makesdna/intern/CMakeLists.txt
@@ -24,21 +24,21 @@
#
# ***** END GPL LICENSE BLOCK *****
-INCLUDE_DIRECTORIES(../../../../intern/guardedalloc ..)
+include_directories(../../../../intern/guardedalloc ..)
# Build makesdna executable
-SET(SRC
+set(SRC
makesdna.c
../../../../intern/guardedalloc/intern/mallocn.c
)
-IF(WIN32 AND NOT UNIX)
- LIST(APPEND SRC
+if(WIN32 AND NOT UNIX)
+ list(APPEND SRC
../../../../intern/guardedalloc/intern/mmap_win.c
)
-ENDIF(WIN32 AND NOT UNIX)
+endif()
-SET(SRC_DNA_INC
+set(SRC_DNA_INC
../DNA_ID.h
../DNA_action_types.h
../DNA_actuator_types.h
@@ -98,22 +98,22 @@ SET(SRC_DNA_INC
../DNA_world_types.h
)
-ADD_EXECUTABLE(makesdna ${SRC} ${SRC_DNA_INC})
+add_executable(makesdna ${SRC} ${SRC_DNA_INC})
# Output dna.c
-ADD_CUSTOM_COMMAND(
+add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
DEPENDS makesdna
)
# Build bf_dna library
-SET(SRC
+set(SRC
dna_genfile.c
dna.c
${SRC_DNA_INC}
)
-BLENDERLIB(bf_dna "${SRC}" "${INC}")
+blenderlib(bf_dna "${SRC}" "${INC}")
-MESSAGE(STATUS "Configuring makesdna")
+message(STATUS "Configuring makesdna")
diff --git a/source/blender/makesrna/CMakeLists.txt b/source/blender/makesrna/CMakeLists.txt
index ec48240bfc5..540597da578 100644
--- a/source/blender/makesrna/CMakeLists.txt
+++ b/source/blender/makesrna/CMakeLists.txt
@@ -24,4 +24,4 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(intern)
+add_subdirectory(intern)
diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt
index bf9ba2dcc70..3d189edb2f2 100644
--- a/source/blender/makesrna/intern/CMakeLists.txt
+++ b/source/blender/makesrna/intern/CMakeLists.txt
@@ -25,20 +25,20 @@
# ***** END GPL LICENSE BLOCK *****
# Generated code has some unused vars we can ignore.
-REMOVE_STRICT_FLAGS()
+remove_strict_flags()
-MESSAGE(STATUS "Configuring makesrna")
+message(STATUS "Configuring makesrna")
-FILE(GLOB DEFSRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.c")
-FILE(GLOB APISRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*_api.c")
-LIST(REMOVE_ITEM DEFSRC rna_access.c rna_define.c makesrna.c)
-LIST(REMOVE_ITEM DEFSRC ${APISRC})
+file(GLOB DEFSRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.c")
+file(GLOB APISRC RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*_api.c")
+list(REMOVE_ITEM DEFSRC rna_access.c rna_define.c makesrna.c)
+list(REMOVE_ITEM DEFSRC ${APISRC})
-STRING(REGEX REPLACE "rna_([a-zA-Z0-9_-]*).c" "${CMAKE_CURRENT_BINARY_DIR}/rna_\\1_gen.c" GENSRC "${DEFSRC}")
-SET_SOURCE_FILES_PROPERTIES(GENSRC PROPERTIES GENERATED true)
+string(REGEX REPLACE "rna_([a-zA-Z0-9_-]*).c" "${CMAKE_CURRENT_BINARY_DIR}/rna_\\1_gen.c" GENSRC "${DEFSRC}")
+set_source_files_properties(GENSRC PROPERTIES GENERATED true)
-SET(SRC
+set(SRC
makesrna.c
rna_define.c
${DEFSRC}
@@ -47,7 +47,7 @@ SET(SRC
../../../../intern/guardedalloc/intern/mmap_win.c
)
-INCLUDE_DIRECTORIES(
+include_directories(
../../../../intern/audaspace/intern
../../../../intern/guardedalloc
../../../../intern/memutil
@@ -66,93 +66,93 @@ INCLUDE_DIRECTORIES(
.
)
-FILE(GLOB INC_FILES ../*.h ../../makesdna/*.h)
+file(GLOB INC_FILES ../*.h ../../makesdna/*.h)
-IF(WITH_PYTHON)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_definitions(-DWITH_PYTHON)
+endif()
-IF(WITH_GAMEENGINE)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_OPENJPEG)
- ADD_DEFINITIONS(-DWITH_OPENJPEG)
-ENDIF(WITH_IMAGE_OPENJPEG)
+if(WITH_IMAGE_OPENJPEG)
+ add_definitions(-DWITH_OPENJPEG)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_IMAGE_HDR)
- ADD_DEFINITIONS(-DWITH_HDR)
-ENDIF(WITH_IMAGE_HDR)
+if(WITH_IMAGE_HDR)
+ add_definitions(-DWITH_HDR)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ../../quicktime)
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ../../quicktime)
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_CODEC_FFMPEG)
- LIST(APPEND INC ${FFMPEG_INC})
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ list(APPEND INC ${FFMPEG_INC})
+ add_definitions(-DWITH_FFMPEG)
+endif()
-IF(WITH_LCMS)
- LIST(APPEND INC ${LCMS_INCLUDE_DIR})
- ADD_DEFINITIONS(-DWITH_LCMS)
-ENDIF(WITH_LCMS)
+if(WITH_LCMS)
+ list(APPEND INC ${LCMS_INCLUDE_DIR})
+ add_definitions(-DWITH_LCMS)
+endif()
-IF(NOT WITH_MOD_FLUID)
- ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_MOD_FLUID)
+if(NOT WITH_MOD_FLUID)
+ add_definitions(-DDISABLE_ELBEEM)
+endif()
-IF(WITH_FFTW3)
- ADD_DEFINITIONS(-DFFTW3=1)
-ENDIF(WITH_FFTW3)
+if(WITH_FFTW3)
+ add_definitions(-DFFTW3=1)
+endif()
-IF(WITH_SDL)
- ADD_DEFINITIONS(-DWITH_SDL)
-ENDIF(WITH_SDL)
+if(WITH_SDL)
+ add_definitions(-DWITH_SDL)
+endif()
-IF(WITH_OPENAL)
- ADD_DEFINITIONS(-DWITH_OPENAL)
-ENDIF(WITH_OPENAL)
+if(WITH_OPENAL)
+ add_definitions(-DWITH_OPENAL)
+endif()
-IF(WITH_JACK)
- ADD_DEFINITIONS(-DWITH_JACK)
-ENDIF(WITH_JACK)
+if(WITH_JACK)
+ add_definitions(-DWITH_JACK)
+endif()
-IF(WITH_OPENCOLLADA)
- ADD_DEFINITIONS(-DWITH_COLLADA)
-ENDIF(WITH_OPENCOLLADA)
+if(WITH_OPENCOLLADA)
+ add_definitions(-DWITH_COLLADA)
+endif()
# Build makesrna executable
-ADD_EXECUTABLE(makesrna ${SRC} ${INC_FILES})
-TARGET_LINK_LIBRARIES(makesrna bf_dna)
+add_executable(makesrna ${SRC} ${INC_FILES})
+target_link_libraries(makesrna bf_dna)
# Output rna_*_gen.c
# note (linux only): with crashes try add this after COMMAND: valgrind --leak-check=full --track-origins=yes
-ADD_CUSTOM_COMMAND(
+add_custom_command(
OUTPUT ${GENSRC}
COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesrna ${CMAKE_CURRENT_BINARY_DIR}/
DEPENDS makesrna
)
# Build bf_rna
-SET(SRC
+set(SRC
rna_access.c
${GENSRC}
@@ -166,4 +166,4 @@ SET(SRC
rna_nodetree_types.h
)
-BLENDERLIB(bf_rna "${SRC}" "${INC}")
+blenderlib(bf_rna "${SRC}" "${INC}")
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c
index 6bdb3fbc738..9748fadf1d2 100644
--- a/source/blender/makesrna/intern/rna_texture.c
+++ b/source/blender/makesrna/intern/rna_texture.c
@@ -473,7 +473,7 @@ static void rna_def_mtex(BlenderRNA *brna)
prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR);
RNA_def_property_float_sdna(prop, NULL, "r");
RNA_def_property_array(prop, 3);
- RNA_def_property_ui_text(prop, "Color", "The default color for textures that don't return RGB");
+ RNA_def_property_ui_text(prop, "Color", "The default color for textures that don't return RGB or when RGB to intensity is enabled");
RNA_def_property_update(prop, 0, "rna_TextureSlot_update");
prop= RNA_def_property(srna, "blend_type", PROP_ENUM, PROP_NONE);
diff --git a/source/blender/modifiers/CMakeLists.txt b/source/blender/modifiers/CMakeLists.txt
index c14787aeae7..5948c0cca91 100644
--- a/source/blender/modifiers/CMakeLists.txt
+++ b/source/blender/modifiers/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
. ./intern
../blenlib
../makesdna
@@ -36,7 +36,7 @@ SET(INC
${ZLIB_INC}
)
-SET(SRC
+set(SRC
intern/MOD_armature.c
intern/MOD_array.c
intern/MOD_bevel.c
@@ -81,21 +81,21 @@ SET(SRC
intern/MOD_util.h
)
-IF(WITH_MOD_BOOLEAN)
- ADD_DEFINITIONS(-DWITH_MOD_BOOLEAN)
- LIST(APPEND SRC
+if(WITH_MOD_BOOLEAN)
+ add_definitions(-DWITH_MOD_BOOLEAN)
+ list(APPEND SRC
intern/MOD_boolean_util.c
)
- LIST(APPEND INC ../../../intern/bsp/extern)
-ENDIF(WITH_MOD_BOOLEAN)
+ list(APPEND INC ../../../intern/bsp/extern)
+endif()
-IF(WITH_MOD_DECIMATE)
- ADD_DEFINITIONS(-DWITH_MOD_DECIMATE)
- LIST(APPEND INC ../../../intern/decimation/extern)
-ENDIF(WITH_MOD_DECIMATE)
+if(WITH_MOD_DECIMATE)
+ add_definitions(-DWITH_MOD_DECIMATE)
+ list(APPEND INC ../../../intern/decimation/extern)
+endif()
-IF(NOT WITH_MOD_FLUID)
- ADD_DEFINITIONS(-DDISABLE_ELBEEM)
-ENDIF(NOT WITH_MOD_FLUID)
+if(NOT WITH_MOD_FLUID)
+ add_definitions(-DDISABLE_ELBEEM)
+endif()
-BLENDERLIB(bf_modifiers "${SRC}" "${INC}")
+blenderlib(bf_modifiers "${SRC}" "${INC}")
diff --git a/source/blender/nodes/CMakeLists.txt b/source/blender/nodes/CMakeLists.txt
index 3628cb4f748..57c8f7bcad4 100644
--- a/source/blender/nodes/CMakeLists.txt
+++ b/source/blender/nodes/CMakeLists.txt
@@ -23,7 +23,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../blenkernel
../blenlib
@@ -37,7 +37,7 @@ SET(INC
../../../extern/glew/include
)
-SET(SRC
+set(SRC
intern/CMP_nodes/CMP_alphaOver.c
intern/CMP_nodes/CMP_bilateralblur.c
intern/CMP_nodes/CMP_blur.c
@@ -148,10 +148,10 @@ SET(SRC
intern/node_util.h
)
-IF(WITH_PYTHON)
- SET(INC ${INC} ../python ${PYTHON_INC})
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ set(INC ${INC} ../python ${PYTHON_INC})
+ add_definitions(-DWITH_PYTHON)
+endif()
-BLENDERLIB(bf_nodes "${SRC}" "${INC}")
+blenderlib(bf_nodes "${SRC}" "${INC}")
diff --git a/source/blender/python/CMakeLists.txt b/source/blender/python/CMakeLists.txt
index b006e7b0be6..fe9e0307703 100644
--- a/source/blender/python/CMakeLists.txt
+++ b/source/blender/python/CMakeLists.txt
@@ -16,5 +16,5 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(intern)
-ADD_SUBDIRECTORY(generic)
+add_subdirectory(intern)
+add_subdirectory(generic)
diff --git a/source/blender/python/generic/CMakeLists.txt b/source/blender/python/generic/CMakeLists.txt
index 5f5575f206b..5569dda2ce6 100644
--- a/source/blender/python/generic/CMakeLists.txt
+++ b/source/blender/python/generic/CMakeLists.txt
@@ -18,7 +18,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../blenlib
../../makesdna
@@ -28,7 +28,7 @@ SET(INC
${PYTHON_INC}
)
-SET(SRC
+set(SRC
IDProp.c
bgl.c
blf_api.c
@@ -57,4 +57,4 @@ SET(SRC
py_capi_utils.h
)
-BLENDERLIB(bf_python_ext "${SRC}" "${INC}")
+blenderlib(bf_python_ext "${SRC}" "${INC}")
diff --git a/source/blender/python/intern/CMakeLists.txt b/source/blender/python/intern/CMakeLists.txt
index b0ef6efb7d4..86b2e0deb04 100644
--- a/source/blender/python/intern/CMakeLists.txt
+++ b/source/blender/python/intern/CMakeLists.txt
@@ -23,7 +23,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../
../../blenlib
../../makesdna
@@ -36,7 +36,7 @@ SET(INC
${PYTHON_INC}
)
-SET(SRC
+set(SRC
bpy.c
bpy_app.c
bpy_driver.c
@@ -62,8 +62,8 @@ SET(SRC
)
# only to check if buildinfo is available
-IF(WITH_BUILDINFO)
- ADD_DEFINITIONS(-DBUILD_DATE)
-ENDIF(WITH_BUILDINFO)
+if(WITH_BUILDINFO)
+ add_definitions(-DBUILD_DATE)
+endif()
-BLENDERLIB(bf_python "${SRC}" "${INC}")
+blenderlib(bf_python "${SRC}" "${INC}")
diff --git a/source/blender/quicktime/CMakeLists.txt b/source/blender/quicktime/CMakeLists.txt
index ebb6949e2ce..f5565153a01 100644
--- a/source/blender/quicktime/CMakeLists.txt
+++ b/source/blender/quicktime/CMakeLists.txt
@@ -24,25 +24,25 @@
#
# ***** END GPL LICENSE BLOCK *****
-IF(USE_QTKIT)
- SET(SRC
+if(USE_QTKIT)
+ set(SRC
apple/qtkit_import.m
apple/qtkit_export.m
quicktime_export.h
quicktime_import.h
)
-ELSE(USE_QTKIT)
- SET(SRC
+else()
+ set(SRC
apple/quicktime_import.c
apple/quicktime_export.c
quicktime_export.h
quicktime_import.h
)
-ENDIF(USE_QTKIT)
+endif()
-SET(INC
+set(INC
.
../quicktime
../makesdna
@@ -61,6 +61,6 @@ SET(INC
${QUICKTIME_INC}
)
-ADD_DEFINITIONS(-DWITH_QUICKTIME)
+add_definitions(-DWITH_QUICKTIME)
-BLENDERLIB(bf_quicktime "${SRC}" "${INC}")
+blenderlib(bf_quicktime "${SRC}" "${INC}")
diff --git a/source/blender/readblenfile/CMakeLists.txt b/source/blender/readblenfile/CMakeLists.txt
index 11128274e20..b6549338fbb 100644
--- a/source/blender/readblenfile/CMakeLists.txt
+++ b/source/blender/readblenfile/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../blenloader
../blenloader/intern
@@ -34,10 +34,10 @@ SET(INC
../../kernel/gen_messaging
)
-SET(SRC
+set(SRC
intern/BLO_readblenfile.c
BLO_readblenfile.h
)
-BLENDERLIB(bf_readblenfile "${SRC}" "${INC}")
+blenderlib(bf_readblenfile "${SRC}" "${INC}")
diff --git a/source/blender/render/CMakeLists.txt b/source/blender/render/CMakeLists.txt
index fd3621a4cf8..779d8982926 100644
--- a/source/blender/render/CMakeLists.txt
+++ b/source/blender/render/CMakeLists.txt
@@ -25,9 +25,9 @@
# ***** END GPL LICENSE BLOCK *****
# remove warning until render branch merged.
-REMOVE_STRICT_FLAGS()
+remove_strict_flags()
-SET(INC
+set(INC
intern/include
extern/include
../blenlib
@@ -41,7 +41,7 @@ SET(INC
../../../intern/guardedalloc
)
-SET(SRC
+set(SRC
intern/raytrace/rayobject.cpp
intern/raytrace/rayobject_qbvh.cpp
intern/raytrace/rayobject_rtbuild.cpp
@@ -111,20 +111,20 @@ SET(SRC
intern/raytrace/vbvh.h
)
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ../quicktime ${QUICKTIME_INC})
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(APPLE)
- IF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
- SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
- SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
- ENDIF(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
-ENDIF(APPLE)
+if(APPLE)
+ if(CMAKE_OSX_ARCHITECTURES MATCHES "i386" OR CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -mfpmath=sse")
+ set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -mfpmath=sse")
+ endif()
+endif()
-BLENDERLIB_NOLIST(bf_render "${SRC}" "${INC}")
+blenderlib_nolist(bf_render "${SRC}" "${INC}")
diff --git a/source/blender/windowmanager/CMakeLists.txt b/source/blender/windowmanager/CMakeLists.txt
index b6920a02bfa..8f91011b210 100644
--- a/source/blender/windowmanager/CMakeLists.txt
+++ b/source/blender/windowmanager/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../nodes
../gpu
@@ -47,7 +47,7 @@ SET(INC
${OPENGL_INCLUDE_DIR}
)
-SET(SRC
+set(SRC
intern/wm.c
intern/wm_apple.c
intern/wm_cursors.c
@@ -75,41 +75,41 @@ SET(SRC
wm_window.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-IF(WITH_INTERNATIONAL)
- ADD_DEFINITIONS(-DINTERNATIONAL)
-ENDIF(WITH_INTERNATIONAL)
+if(WITH_INTERNATIONAL)
+ add_definitions(-DINTERNATIONAL)
+endif()
-IF(WITH_OPENCOLLADA)
- ADD_DEFINITIONS(-DWITH_COLLADA)
-ENDIF(WITH_OPENCOLLADA)
+if(WITH_OPENCOLLADA)
+ add_definitions(-DWITH_COLLADA)
+endif()
-IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND INC ../quicktime ${QUICKTIME_INC})
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ list(APPEND INC ../quicktime ${QUICKTIME_INC})
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_CODEC_FFMPEG)
- LIST(APPEND INC ${FFMPEG_INC})
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ list(APPEND INC ${FFMPEG_INC})
+ add_definitions(-DWITH_FFMPEG)
+endif()
-IF(WITH_PYTHON)
- LIST(APPEND INC ../python ${PYTHON_INC})
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ list(APPEND INC ../python ${PYTHON_INC})
+ add_definitions(-DWITH_PYTHON)
+endif()
-IF(WITH_GAMEENGINE)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-IF(WITH_COCOA)
- LIST(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
-ENDIF(WITH_COCOA)
+if(WITH_COCOA)
+ list(REMOVE_ITEM SRC "${CMAKE_CURRENT_SOURCE_DIR}/intern/wm_apple.c")
+endif()
-IF(WITH_BUILDINFO)
- ADD_DEFINITIONS(-DNAN_BUILDINFO)
-ENDIF(WITH_BUILDINFO)
+if(WITH_BUILDINFO)
+ add_definitions(-DNAN_BUILDINFO)
+endif()
-BLENDERLIB_NOLIST(bf_windowmanager "${SRC}" "${INC}")
+blenderlib_nolist(bf_windowmanager "${SRC}" "${INC}")
diff --git a/source/blenderplayer/CMakeLists.txt b/source/blenderplayer/CMakeLists.txt
index fa6521e7f8d..46a1d41d098 100644
--- a/source/blenderplayer/CMakeLists.txt
+++ b/source/blenderplayer/CMakeLists.txt
@@ -24,48 +24,48 @@
#
# ***** END GPL LICENSE BLOCK *****
-MESSAGE(STATUS "Configuring blenderplayer")
+message(STATUS "Configuring blenderplayer")
-SETUP_LIBDIRS()
+setup_libdirs()
-IF(WITH_CODEC_QUICKTIME)
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
- ADD_DEFINITIONS(-DWITH_BINRELOC)
- INCLUDE_DIRECTORIES(${BINRELOC_INC})
-ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ add_definitions(-DWITH_BINRELOC)
+ include_directories(${BINRELOC_INC})
+endif()
-ADD_CUSTOM_COMMAND(
+add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/dna.c
COMMAND ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna ${CMAKE_CURRENT_BINARY_DIR}/dna.c ${CMAKE_SOURCE_DIR}/source/blender/makesdna/
DEPENDS ${CMAKE_BINARY_DIR}/bin/${CMAKE_CFG_INTDIR}/makesdna
)
-IF(WIN32 AND NOT UNIX)
- ADD_EXECUTABLE(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
-ELSE(WIN32 AND NOT UNIX)
- ADD_EXECUTABLE(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)
-ENDIF(WIN32 AND NOT UNIX)
+if(WIN32 AND NOT UNIX)
+ add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
+else()
+ add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)
+endif()
-ADD_DEPENDENCIES(blenderplayer makesdna)
+add_dependencies(blenderplayer makesdna)
-GET_PROPERTY(BLENDER_LINK_LIBS GLOBAL PROPERTY BLENDER_LINK_LIBS)
+get_property(BLENDER_LINK_LIBS GLOBAL PROPERTY BLENDER_LINK_LIBS)
-LIST(APPEND BLENDER_LINK_LIBS
+list(APPEND BLENDER_LINK_LIBS
ge_player_common
ge_player_ghost
blenkernel_blc
)
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
- LIST(APPEND BLENDER_LINK_LIBS extern_binreloc)
-ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND BLENDER_LINK_LIBS extern_binreloc)
+endif()
-IF(UNIX)
+if(UNIX)
# Sort libraries
- SET(BLENDER_SORTED_LIBS
+ set(BLENDER_SORTED_LIBS
ge_player_ghost
ge_player_common
bf_intern_string
@@ -123,34 +123,34 @@ IF(UNIX)
bf_blenkernel # duplicate for linking
)
- IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND BLENDER_SORTED_LIBS bf_quicktime)
- ENDIF(WITH_CODEC_QUICKTIME)
-
- IF(WITH_CXX_GUARDEDALLOC)
- LIST(APPEND BLENDER_SORTED_LIBS bf_intern_guardedalloc_cpp)
- ENDIF(WITH_CXX_GUARDEDALLOC)
-
- FOREACH(SORTLIB ${BLENDER_SORTED_LIBS})
- SET(REMLIB ${SORTLIB})
- FOREACH(SEARCHLIB ${BLENDER_LINK_LIBS})
- IF(${SEARCHLIB} STREQUAL ${SORTLIB})
- SET(REMLIB "")
- ENDIF(${SEARCHLIB} STREQUAL ${SORTLIB})
- ENDFOREACH(SEARCHLIB)
- IF(REMLIB)
- MESSAGE(STATUS "Removing library ${REMLIB} from blenderplayer linking because: not configured")
- LIST(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
- ENDIF(REMLIB)
- ENDFOREACH(SORTLIB)
-
- TARGET_LINK_LIBRARIES(blenderplayer ${BLENDER_SORTED_LIBS})
-ELSE(UNIX)
- TARGET_LINK_LIBRARIES(blenderplayer ${BLENDER_LINK_LIBS})
-ENDIF(UNIX)
-
-IF(WITH_PLAYER)
- ADD_SUBDIRECTORY(bad_level_call_stubs)
-ENDIF(WITH_PLAYER)
-
-SETUP_LIBLINKS(blenderplayer)
+ if(WITH_CODEC_QUICKTIME)
+ list(APPEND BLENDER_SORTED_LIBS bf_quicktime)
+ endif()
+
+ if(WITH_CXX_GUARDEDALLOC)
+ list(APPEND BLENDER_SORTED_LIBS bf_intern_guardedalloc_cpp)
+ endif()
+
+ foreach(SORTLIB ${BLENDER_SORTED_LIBS})
+ set(REMLIB ${SORTLIB})
+ foreach(SEARCHLIB ${BLENDER_LINK_LIBS})
+ if(${SEARCHLIB} STREQUAL ${SORTLIB})
+ set(REMLIB "")
+ endif()
+ endforeach()
+ if(REMLIB)
+ message(STATUS "Removing library ${REMLIB} from blenderplayer linking because: not configured")
+ list(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
+ endif()
+ endforeach()
+
+ target_link_libraries(blenderplayer ${BLENDER_SORTED_LIBS})
+else()
+ target_link_libraries(blenderplayer ${BLENDER_LINK_LIBS})
+endif()
+
+if(WITH_PLAYER)
+ add_subdirectory(bad_level_call_stubs)
+endif()
+
+setup_liblinks(blenderplayer)
diff --git a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt
index 28510b0a113..0974438c272 100644
--- a/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt
+++ b/source/blenderplayer/bad_level_call_stubs/CMakeLists.txt
@@ -25,9 +25,9 @@
# ***** END GPL LICENSE BLOCK *****
# this warning on generated files gets annoying
-REMOVE_STRICT_FLAGS()
+remove_strict_flags()
-SET(INC
+set(INC
.
..
../../../intern/guardedalloc
@@ -36,23 +36,23 @@ SET(INC
../../../source/blender/blenkernel
)
-SET(SRC
+set(SRC
stubs.c
)
-IF(WITH_BUILDINFO)
- ADD_DEFINITIONS(-DBUILD_DATE)
- LIST(APPEND SRC
+if(WITH_BUILDINFO)
+ add_definitions(-DBUILD_DATE)
+ list(APPEND SRC
../../creator/buildinfo.c
)
-ENDIF(WITH_BUILDINFO)
+endif()
-IF(WITH_GAMEENGINE)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+if(WITH_GAMEENGINE)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-IF(WITH_INTERNATIONAL)
- ADD_DEFINITIONS(-DWITH_FREETYPE2)
-ENDIF(WITH_INTERNATIONAL)
+if(WITH_INTERNATIONAL)
+ add_definitions(-DWITH_FREETYPE2)
+endif()
-BLENDERLIB_NOLIST(blenkernel_blc "${SRC}" "${INC}")
+blenderlib_nolist(blenkernel_blc "${SRC}" "${INC}")
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 7b9d8421aa5..9561cd4831c 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -25,11 +25,11 @@
# ***** END GPL LICENSE BLOCK *****
# So BUILDINFO and BLENDERPATH strings are automatically quoted
-CMAKE_POLICY(SET CMP0005 NEW)
+cmake_policy(SET CMP0005 NEW)
-SETUP_LIBDIRS()
+setup_libdirs()
-INCLUDE_DIRECTORIES(
+include_directories(
../../intern/guardedalloc
../blender/blenlib
../blender/blenkernel
@@ -42,69 +42,69 @@ INCLUDE_DIRECTORIES(
../blender/windowmanager
)
-IF(WITH_CODEC_QUICKTIME)
- ADD_DEFINITIONS(-DWITH_QUICKTIME)
-ENDIF(WITH_CODEC_QUICKTIME)
+if(WITH_CODEC_QUICKTIME)
+ add_definitions(-DWITH_QUICKTIME)
+endif()
-IF(WITH_IMAGE_OPENEXR)
- ADD_DEFINITIONS(-DWITH_OPENEXR)
-ENDIF(WITH_IMAGE_OPENEXR)
+if(WITH_IMAGE_OPENEXR)
+ add_definitions(-DWITH_OPENEXR)
+endif()
-IF(WITH_IMAGE_TIFF)
- ADD_DEFINITIONS(-DWITH_TIFF)
-ENDIF(WITH_IMAGE_TIFF)
+if(WITH_IMAGE_TIFF)
+ add_definitions(-DWITH_TIFF)
+endif()
-IF(WITH_IMAGE_DDS)
- ADD_DEFINITIONS(-DWITH_DDS)
-ENDIF(WITH_IMAGE_DDS)
+if(WITH_IMAGE_DDS)
+ add_definitions(-DWITH_DDS)
+endif()
-IF(WITH_IMAGE_CINEON)
- ADD_DEFINITIONS(-DWITH_CINEON)
-ENDIF(WITH_IMAGE_CINEON)
+if(WITH_IMAGE_CINEON)
+ add_definitions(-DWITH_CINEON)
+endif()
-IF(WITH_IMAGE_HDR)
- ADD_DEFINITIONS(-DWITH_HDR)
-ENDIF(WITH_IMAGE_HDR)
+if(WITH_IMAGE_HDR)
+ add_definitions(-DWITH_HDR)
+endif()
-IF(WITH_PYTHON)
- INCLUDE_DIRECTORIES(../blender/python)
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ include_directories(../blender/python)
+ add_definitions(-DWITH_PYTHON)
+endif()
-IF(WITH_GAMEENGINE)
- INCLUDE_DIRECTORIES(
+if(WITH_GAMEENGINE)
+ include_directories(
../kernel/gen_messaging
../kernel/gen_system
)
- ADD_DEFINITIONS(-DWITH_GAMEENGINE)
-ENDIF(WITH_GAMEENGINE)
+ add_definitions(-DWITH_GAMEENGINE)
+endif()
-IF(NOT WITH_SDL)
- ADD_DEFINITIONS(-DDISABLE_SDL)
-ENDIF(NOT WITH_SDL)
+if(NOT WITH_SDL)
+ add_definitions(-DDISABLE_SDL)
+endif()
-IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
- ADD_DEFINITIONS(-DWITH_BINRELOC)
- INCLUDE_DIRECTORIES(${BINRELOC_INC})
-ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
+if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ add_definitions(-DWITH_BINRELOC)
+ include_directories(${BINRELOC_INC})
+endif()
# Setup the exe sources and buildinfo
-SET(SRC
+set(SRC
creator.c
)
-IF(WIN32 AND NOT UNIX)
- LIST(APPEND SRC
+if(WIN32 AND NOT UNIX)
+ list(APPEND SRC
../icons/winblender.rc
)
-ENDIF(WIN32 AND NOT UNIX)
+endif()
-IF(WITH_BUILDINFO)
- STRING(REPLACE " " "\ " BUILDINFO_CFLAGS "${CMAKE_C_FLAGS}")
- STRING(REPLACE " " "\ " BUILDINFO_CXXFLAGS "${CMAKE_CXX_FLAGS}")
- STRING(REPLACE " " "\ " BUILDINFO_LINKFLAGS "${PLATFORM_LINKFLAGS}")
- ADD_DEFINITIONS(
+if(WITH_BUILDINFO)
+ string(REPLACE " " "\ " BUILDINFO_CFLAGS "${CMAKE_C_FLAGS}")
+ string(REPLACE " " "\ " BUILDINFO_CXXFLAGS "${CMAKE_CXX_FLAGS}")
+ string(REPLACE " " "\ " BUILDINFO_LINKFLAGS "${PLATFORM_LINKFLAGS}")
+ add_definitions(
-DBUILD_DATE="${BUILD_DATE}"
-DBUILD_TIME="${BUILD_TIME}"
-DBUILD_REV="${BUILD_REV}"
@@ -116,60 +116,60 @@ IF(WITH_BUILDINFO)
-DBUILD_SYSTEM="CMake"
)
- LIST(APPEND SRC
+ list(APPEND SRC
buildinfo.c
)
-ENDIF(WITH_BUILDINFO)
+endif()
-MESSAGE(STATUS "Configuring blender")
+message(STATUS "Configuring blender")
-ADD_EXECUTABLE(blender ${EXETYPE} ${SRC})
+add_executable(blender ${EXETYPE} ${SRC})
# Post build steps for bundling/packaging.
-SET(TARGETDIR ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR})
+set(TARGETDIR ${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR})
-IF(WITH_INSTALL)
+if(WITH_INSTALL)
- IF(UNIX)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(UNIX)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
#COMMAND cp -R ${CMAKE_SOURCE_DIR}/release/plugins ${TARGETDIR}/
#COMMAND cp -R ${CMAKE_SOURCE_DIR}/release/text/* ${TARGETDIR}/
)
- ENDIF(UNIX)
+ endif()
- IF(UNIX AND NOT APPLE)
+ if(UNIX AND NOT APPLE)
# Local installation, "make install" can be done after this optionally
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND rm -Rf ${TARGETDIR}/${BLENDER_VERSION}
COMMAND mkdir ${TARGETDIR}/${BLENDER_VERSION}/
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.bfont.ttf ${TARGETDIR}/${BLENDER_VERSION}/
)
- IF(WITH_INTERNATIONAL)
- ADD_CUSTOM_COMMAND(
+ if(WITH_INTERNATIONAL)
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.Blanguages ${TARGETDIR}/${BLENDER_VERSION}/
COMMAND cp -R ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale ${TARGETDIR}/${BLENDER_VERSION}/
)
- ENDIF(WITH_INTERNATIONAL)
+ endif()
- IF(WITH_PYTHON)
- ADD_CUSTOM_COMMAND(
+ if(WITH_PYTHON)
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMENT "copying blender scripts..."
COMMAND cp -R ${CMAKE_SOURCE_DIR}/release/scripts ${TARGETDIR}/${BLENDER_VERSION}/
COMMAND find ${TARGETDIR} -name "*.py?" -prune -exec rm -rf {} "\;"
)
- IF(WITH_PYTHON_INSTALL)
+ if(WITH_PYTHON_INSTALL)
# Copy the systems python into the install directory
# Scons copy in tools/Blender.py
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMENT "copying a subset of the systems python..."
@@ -191,10 +191,10 @@ IF(WITH_INSTALL)
COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/python${PYTHON_VERSION} -name "*.py?" -exec rm -rf {} "\;"
COMMAND find ${TARGETDIR}/${BLENDER_VERSION}/python/lib/python${PYTHON_VERSION} -name "*.so"-exec strip -s {} "\;"
)
- ENDIF(WITH_PYTHON_INSTALL)
- ENDIF(WITH_PYTHON)
+ endif()
+ endif()
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND find ${TARGETDIR} -name .svn -prune -exec rm -rf {} "\;"
)
@@ -202,63 +202,63 @@ IF(WITH_INSTALL)
# Above we bundle a portable distribution in ./bin
# This is an optional "make install" which installs blender on the system.
- INSTALL(
+ install(
PROGRAMS ${TARGETDIR}/blender
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
- IF(WITH_GAMEENGINE AND WITH_PLAYER)
- INSTALL(
+ if(WITH_GAMEENGINE AND WITH_PLAYER)
+ install(
PROGRAMS ${TARGETDIR}/blenderplayer
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
- ENDIF(WITH_GAMEENGINE AND WITH_PLAYER)
+ endif()
- INSTALL(
+ install(
FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/blender.desktop
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications
)
- INSTALL(
+ install(
FILES ${CMAKE_SOURCE_DIR}/release/freedesktop/icons/scalable/blender.svg
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps
)
- INSTALL(
+ install(
PROGRAMS ${CMAKE_SOURCE_DIR}/release/bin/blender-thumbnailer.py
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
- INSTALL(
+ install(
FILES ${CMAKE_SOURCE_DIR}/doc/manpage/blender.1
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1
)
- INSTALL(
+ install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/text/
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/doc/blender
PATTERN ".svn" EXCLUDE
)
- INSTALL(
+ install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts/
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/scripts
PATTERN ".svn" EXCLUDE
PATTERN "*.pyc" EXCLUDE
)
- INSTALL(
+ install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/datafiles/brushicons/
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/datafiles/brushicons
PATTERN ".svn" EXCLUDE
)
- IF(WITH_INTERNATIONAL)
- INSTALL(
+ if(WITH_INTERNATIONAL)
+ install(
DIRECTORY ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale/
DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/${BLENDER_VERSION}/datafiles/locale
PATTERN ".svn" EXCLUDE
)
- ENDIF(WITH_INTERNATIONAL)
+ endif()
# end "make install"
- ELSEIF(WIN32)
+ elseif(WIN32)
# notice 'xcopy /Y /H' on .bfont.ttf, this is needed when building over samba
- ADD_CUSTOM_COMMAND(TARGET blender
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND if not exist \"${TARGETDIR}\\${BLENDER_VERSION}\" mkdir \"${TARGETDIR}\\${BLENDER_VERSION}\"
@@ -271,41 +271,41 @@ IF(WITH_INSTALL)
COMMAND copy /Y \"${CMAKE_SOURCE_DIR}\\release\\text\\*.*\" \"${TARGETDIR}\\\"
)
- IF(CMAKE_CL_64)
+ if(CMAKE_CL_64)
# gettext and png are statically linked on win64
- ADD_CUSTOM_COMMAND(TARGET blender
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\zlib\\lib\\zlib.dll\" \"${TARGETDIR}\\\"
)
- ELSE(CMAKE_CL_64)
- ADD_CUSTOM_COMMAND(TARGET blender
+ else()
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\gettext\\lib\\gnu_gettext.dll\" \"${TARGETDIR}\\\"
COMMAND copy /Y \"${LIBDIR}\\png\\lib\\libpng.dll\" \"${TARGETDIR}\\\"
COMMAND copy /Y \"${LIBDIR}\\zlib\\lib\\zlib.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(CMAKE_CL_64)
+ endif()
- IF(MSVC)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(MSVC)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\pthreads\\lib\\pthreadVC2.dll\" \"${TARGETDIR}\\\"
)
- ELSE(MSVC)
- ADD_CUSTOM_COMMAND(TARGET blender
+ else()
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\pthreads\\lib\\pthreadGC2.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(MSVC)
+ endif()
- IF(WITH_PYTHON)
- IF(NOT CMAKE_BUILD_TYPE) # hack: with multi-configuration generator this is "", so for now copy both python31.dll/zip and python31_d.dll/zip
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_PYTHON)
+ if(NOT CMAKE_BUILD_TYPE) # hack: with multi-configuration generator this is "", so for now copy both python31.dll/zip and python31_d.dll/zip
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND if not exist \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\" mkdir \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\"
@@ -320,37 +320,37 @@ IF(WITH_INSTALL)
COMMAND if \"$(ConfigurationName)\" == \"MinSizeRel\" copy /Y \"${LIBDIR}\\python\\lib\\python31.dll\" \"${TARGETDIR}\\\"
COMMAND if \"$(ConfigurationName)\" == \"MinSizeRel\" xcopy /E /Y \"${LIBDIR}\\release\\python31\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\\\"
)
- ELSE(NOT CMAKE_BUILD_TYPE)
- IF(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
- ADD_CUSTOM_COMMAND(TARGET blender
+ else()
+ if(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\python\\lib\\python31_d.dll\" \"${TARGETDIR}\\\"
COMMAND xcopy /E /Y \"${LIBDIR}\\release\\python31_d\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\\\"
)
- ELSE(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
- ADD_CUSTOM_COMMAND(TARGET blender
+ else()
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\python\\lib\\python31.dll\" \"${TARGETDIR}\\\"
COMMAND xcopy /E /Y \"${LIBDIR}\\release\\python31\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\python\\lib\\\"
)
- ENDIF(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
- ENDIF(NOT CMAKE_BUILD_TYPE)
- ENDIF(WITH_PYTHON)
+ endif()
+ endif()
+ endif()
- IF(WITH_INTERNATIONAL)
- IF(CMAKE_CL_64)
+ if(WITH_INTERNATIONAL)
+ if(CMAKE_CL_64)
# iconv is statically linked on win64
- ADD_CUSTOM_COMMAND(TARGET blender
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND if not exist \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\locale\" mkdir \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\locale\"
COMMAND copy /Y \"${CMAKE_SOURCE_DIR}\\release\\bin\\.blender\\.Blanguages\" \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\\"
COMMAND xcopy /E /Y \"${CMAKE_SOURCE_DIR}\\release\\bin\\.blender\\locale\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\locale\\\"
)
- ELSE(CMAKE_CL_64)
- ADD_CUSTOM_COMMAND(TARGET blender
+ else()
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\iconv\\lib\\iconv.dll\" \"${TARGETDIR}\\\"
@@ -358,11 +358,11 @@ IF(WITH_INSTALL)
COMMAND copy /Y \"${CMAKE_SOURCE_DIR}\\release\\bin\\.blender\\.Blanguages\" \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\\"
COMMAND xcopy /E /Y \"${CMAKE_SOURCE_DIR}\\release\\bin\\.blender\\locale\\*.*\" \"${TARGETDIR}\\${BLENDER_VERSION}\\config\\locale\\\"
)
- ENDIF(CMAKE_CL_64)
- ENDIF(WITH_INTERNATIONAL)
+ endif()
+ endif()
- IF(WITH_CODEC_FFMPEG)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_CODEC_FFMPEG)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\ffmpeg\\lib\\avcodec-52.dll\" \"${TARGETDIR}\\\"
@@ -371,50 +371,50 @@ IF(WITH_INSTALL)
COMMAND copy /Y \"${LIBDIR}\\ffmpeg\\lib\\avutil-50.dll\" \"${TARGETDIR}\\\"
COMMAND copy /Y \"${LIBDIR}\\ffmpeg\\lib\\swscale-0.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(WITH_CODEC_FFMPEG)
+ endif()
- IF(WITH_CODEC_SNDFILE)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_CODEC_SNDFILE)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\sndfile\\lib\\libsndfile-1.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(WITH_CODEC_SNDFILE)
+ endif()
- IF(WITH_JACK)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_JACK)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\jack\\lib\\libjack.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(WITH_JACK)
+ endif()
- IF(WITH_OPENAL)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_OPENAL)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\openal\\lib\\OpenAL32.dll\" \"${TARGETDIR}\\\"
COMMAND copy /Y \"${LIBDIR}\\openal\\lib\\wrap_oal.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(WITH_OPENAL)
+ endif()
- IF(WITH_SDL)
- IF(NOT CMAKE_CL_64)
- ADD_CUSTOM_COMMAND(TARGET blender
+ if(WITH_SDL)
+ if(NOT CMAKE_CL_64)
+ add_custom_command(TARGET blender
POST_BUILD
MAIN_DEPENDENCY blender
COMMAND copy /Y \"${LIBDIR}\\sdl\\lib\\SDL.dll\" \"${TARGETDIR}\\\"
)
- ENDIF(NOT CMAKE_CL_64)
- ENDIF(WITH_SDL)
+ endif()
+ endif()
- ELSEIF(APPLE)
- SET(SOURCEDIR ${CMAKE_SOURCE_DIR}/source/darwin/blender.app)
- SET(SOURCEINFO ${SOURCEDIR}/Contents/Info.plist)
- SET(TARGETINFO ${TARGETDIR}/blender.app/Contents/Info.plist)
+ elseif(APPLE)
+ set(SOURCEDIR ${CMAKE_SOURCE_DIR}/source/darwin/blender.app)
+ set(SOURCEINFO ${SOURCEDIR}/Contents/Info.plist)
+ set(TARGETINFO ${TARGETDIR}/blender.app/Contents/Info.plist)
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND cp -Rf ${SOURCEINFO} ${TARGETDIR}/blender.app/Contents/
COMMAND cp -Rf ${SOURCEDIR}/Contents/PkgInfo ${TARGETDIR}/blender.app/Contents/
@@ -426,49 +426,49 @@ IF(WITH_INSTALL)
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.bfont.ttf ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
)
- IF(WITH_INTERNATIONAL)
- ADD_CUSTOM_COMMAND(
+ if(WITH_INTERNATIONAL)
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND cp ${CMAKE_SOURCE_DIR}/release/bin/.blender/.Blanguages ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/bin/.blender/locale ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/datafiles/
)
- ENDIF(WITH_INTERNATIONAL)
+ endif()
- IF(WITH_PYTHON)
- SET(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
- ADD_CUSTOM_COMMAND(
+ if(WITH_PYTHON)
+ set(PYTHON_ZIP "python_${CMAKE_OSX_ARCHITECTURES}.zip")
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND cp -Rf ${CMAKE_SOURCE_DIR}/release/scripts ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/
COMMAND mkdir ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/python/
COMMAND unzip -q ${LIBDIR}/release/${PYTHON_ZIP} -d ${TARGETDIR}/blender.app/Contents/MacOS/${BLENDER_VERSION}/python/
COMMAND find ${TARGETDIR}/blender.app -name "*.py?" -prune -exec rm -rf {} "\;"
)
- ENDIF(WITH_PYTHON)
+ endif()
- ADD_CUSTOM_COMMAND(
+ add_custom_command(
TARGET blender POST_BUILD MAIN_DEPENDENCY blender
COMMAND find ${TARGETDIR}/blender.app -name .DS_Store -prune -exec rm -rf {} "\;"
COMMAND find ${TARGETDIR}/blender.app -name .svn -prune -exec rm -rf {} "\;"
COMMAND find ${TARGETDIR}/blender.app -name __MACOSX -prune -exec rm -rf {} "\;"
)
- ENDIF(UNIX AND NOT APPLE)
+ endif()
-ENDIF(WITH_INSTALL)
+endif()
-ADD_DEPENDENCIES(blender makesdna)
+add_dependencies(blender makesdna)
-GET_PROPERTY(BLENDER_LINK_LIBS GLOBAL PROPERTY BLENDER_LINK_LIBS)
+get_property(BLENDER_LINK_LIBS GLOBAL PROPERTY BLENDER_LINK_LIBS)
-SET(BLENDER_LINK_LIBS bf_nodes ${BLENDER_LINK_LIBS} bf_windowmanager bf_render)
+set(BLENDER_LINK_LIBS bf_nodes ${BLENDER_LINK_LIBS} bf_windowmanager bf_render)
-IF(WITH_MOD_FLUID)
- LIST(APPEND BLENDER_LINK_LIBS bf_intern_elbeem)
-ENDIF(WITH_MOD_FLUID)
+if(WITH_MOD_FLUID)
+ list(APPEND BLENDER_LINK_LIBS bf_intern_elbeem)
+endif()
-#IF(UNIX)
+#if(UNIX)
# Sort libraries
- SET(BLENDER_SORTED_LIBS
+ set(BLENDER_SORTED_LIBS
bf_windowmanager
bf_editor_space_api
@@ -570,38 +570,38 @@ ENDIF(WITH_MOD_FLUID)
bf_intern_audaspace
)
- IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
- LIST(APPEND BLENDER_SORTED_LIBS extern_binreloc)
- ENDIF(CMAKE_SYSTEM_NAME MATCHES "Linux")
-
- IF(WITH_CXX_GUARDEDALLOC)
- LIST(APPEND BLENDER_SORTED_LIBS bf_intern_guardedalloc_cpp)
- ENDIF(WITH_CXX_GUARDEDALLOC)
-
- IF(WITH_IK_ITASC)
- LIST(APPEND BLENDER_SORTED_LIBS bf_intern_itasc)
- ENDIF(WITH_IK_ITASC)
-
- IF(WITH_CODEC_QUICKTIME)
- LIST(APPEND BLENDER_SORTED_LIBS bf_quicktime)
- ENDIF(WITH_CODEC_QUICKTIME)
-
-
- FOREACH(SORTLIB ${BLENDER_SORTED_LIBS})
- SET(REMLIB ${SORTLIB})
- FOREACH(SEARCHLIB ${BLENDER_LINK_LIBS})
- IF(${SEARCHLIB} STREQUAL ${SORTLIB})
- SET(REMLIB "")
- ENDIF(${SEARCHLIB} STREQUAL ${SORTLIB})
- ENDFOREACH(SEARCHLIB)
- IF(REMLIB)
- MESSAGE(STATUS "Removing library ${REMLIB} from blender linking because: not configured")
- LIST(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
- ENDIF(REMLIB)
- ENDFOREACH(SORTLIB)
- TARGET_LINK_LIBRARIES(blender ${BLENDER_SORTED_LIBS})
-#ELSE(UNIX)
-# TARGET_LINK_LIBRARIES(blender ${BLENDER_LINK_LIBS})
-#ENDIF(UNIX)
-
-SETUP_LIBLINKS(blender)
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
+ list(APPEND BLENDER_SORTED_LIBS extern_binreloc)
+ endif()
+
+ if(WITH_CXX_GUARDEDALLOC)
+ list(APPEND BLENDER_SORTED_LIBS bf_intern_guardedalloc_cpp)
+ endif()
+
+ if(WITH_IK_ITASC)
+ list(APPEND BLENDER_SORTED_LIBS bf_intern_itasc)
+ endif()
+
+ if(WITH_CODEC_QUICKTIME)
+ list(APPEND BLENDER_SORTED_LIBS bf_quicktime)
+ endif()
+
+
+ foreach(SORTLIB ${BLENDER_SORTED_LIBS})
+ set(REMLIB ${SORTLIB})
+ foreach(SEARCHLIB ${BLENDER_LINK_LIBS})
+ if(${SEARCHLIB} STREQUAL ${SORTLIB})
+ set(REMLIB "")
+ endif()
+ endforeach()
+ if(REMLIB)
+ message(STATUS "Removing library ${REMLIB} from blender linking because: not configured")
+ list(REMOVE_ITEM BLENDER_SORTED_LIBS ${REMLIB})
+ endif()
+ endforeach()
+ target_link_libraries(blender ${BLENDER_SORTED_LIBS})
+#else()
+# target_link_libraries(blender ${BLENDER_LINK_LIBS})
+#endif()
+
+setup_liblinks(blender)
diff --git a/source/gameengine/BlenderRoutines/CMakeLists.txt b/source/gameengine/BlenderRoutines/CMakeLists.txt
index 66a26e9ff79..098cf71ac9f 100644
--- a/source/gameengine/BlenderRoutines/CMakeLists.txt
+++ b/source/gameengine/BlenderRoutines/CMakeLists.txt
@@ -1,5 +1,5 @@
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
@@ -32,7 +32,7 @@ SET(INC
../../../extern/glew/include
)
-SET(SRC
+set(SRC
BL_KetsjiEmbedStart.cpp
KX_BlenderCanvas.cpp
KX_BlenderGL.cpp
@@ -51,10 +51,10 @@ SET(SRC
KX_BlenderSystem.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-IF(WITH_CODEC_FFMPEG)
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ add_definitions(-DWITH_FFMPEG)
+endif()
-BLENDERLIB(ge_blen_routines "${SRC}" "${INC}")
+blenderlib(ge_blen_routines "${SRC}" "${INC}")
diff --git a/source/gameengine/CMakeLists.txt b/source/gameengine/CMakeLists.txt
index 7f8abfec8c5..686cb7cc8fa 100644
--- a/source/gameengine/CMakeLists.txt
+++ b/source/gameengine/CMakeLists.txt
@@ -25,33 +25,33 @@
# ***** END GPL LICENSE BLOCK *****
# there are too many inter-includes so best define here
-IF(WITH_PYTHON)
- INCLUDE_DIRECTORIES(${PYTHON_INC})
- ADD_DEFINITIONS(-DWITH_PYTHON)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ include_directories(${PYTHON_INC})
+ add_definitions(-DWITH_PYTHON)
+endif()
-ADD_SUBDIRECTORY(BlenderRoutines)
-ADD_SUBDIRECTORY(Converter)
-ADD_SUBDIRECTORY(Expressions)
-ADD_SUBDIRECTORY(GameLogic)
-ADD_SUBDIRECTORY(Ketsji)
-ADD_SUBDIRECTORY(Ketsji/KXNetwork)
-ADD_SUBDIRECTORY(Network)
-ADD_SUBDIRECTORY(Network/LoopBackNetwork)
-ADD_SUBDIRECTORY(Physics/common)
-ADD_SUBDIRECTORY(Physics/Dummy)
-ADD_SUBDIRECTORY(Rasterizer)
-ADD_SUBDIRECTORY(Rasterizer/RAS_OpenGLRasterizer)
-ADD_SUBDIRECTORY(SceneGraph)
+add_subdirectory(BlenderRoutines)
+add_subdirectory(Converter)
+add_subdirectory(Expressions)
+add_subdirectory(GameLogic)
+add_subdirectory(Ketsji)
+add_subdirectory(Ketsji/KXNetwork)
+add_subdirectory(Network)
+add_subdirectory(Network/LoopBackNetwork)
+add_subdirectory(Physics/common)
+add_subdirectory(Physics/Dummy)
+add_subdirectory(Rasterizer)
+add_subdirectory(Rasterizer/RAS_OpenGLRasterizer)
+add_subdirectory(SceneGraph)
-IF(WITH_BULLET)
- ADD_SUBDIRECTORY(Physics/Bullet)
-ENDIF(WITH_BULLET)
+if(WITH_BULLET)
+ add_subdirectory(Physics/Bullet)
+endif()
-IF(WITH_PYTHON)
- ADD_SUBDIRECTORY(VideoTexture)
-ENDIF(WITH_PYTHON)
+if(WITH_PYTHON)
+ add_subdirectory(VideoTexture)
+endif()
-IF(WITH_PLAYER)
- ADD_SUBDIRECTORY(GamePlayer)
-ENDIF(WITH_PLAYER)
+if(WITH_PLAYER)
+ add_subdirectory(GamePlayer)
+endif()
diff --git a/source/gameengine/Converter/CMakeLists.txt b/source/gameengine/Converter/CMakeLists.txt
index a930fcb0c01..efffd5d2e99 100644
--- a/source/gameengine/Converter/CMakeLists.txt
+++ b/source/gameengine/Converter/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
@@ -59,7 +59,7 @@ SET(INC
../../../extern/bullet2/src
)
-SET(SRC
+set(SRC
BL_ActionActuator.cpp
BL_ArmatureActuator.cpp
BL_ArmatureChannel.cpp
@@ -105,8 +105,8 @@ SET(SRC
KX_SoftBodyDeformer.h
)
-IF(WITH_BULLET)
- ADD_DEFINITIONS(-DUSE_BULLET)
-ENDIF(WITH_BULLET)
+if(WITH_BULLET)
+ add_definitions(-DUSE_BULLET)
+endif()
-BLENDERLIB(ge_converter "${SRC}" "${INC}")
+blenderlib(ge_converter "${SRC}" "${INC}")
diff --git a/source/gameengine/Expressions/CMakeLists.txt b/source/gameengine/Expressions/CMakeLists.txt
index 1197927bb87..5a445bc1f82 100644
--- a/source/gameengine/Expressions/CMakeLists.txt
+++ b/source/gameengine/Expressions/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
@@ -34,7 +34,7 @@ SET(INC
../../../source/blender/blenloader
)
-SET(SRC
+set(SRC
BoolValue.cpp
ConstExpr.cpp
EXP_C-Api.cpp
@@ -78,4 +78,4 @@ SET(SRC
VoidValue.h
)
-BLENDERLIB(ge_logic_expressions "${SRC}" "${INC}")
+blenderlib(ge_logic_expressions "${SRC}" "${INC}")
diff --git a/source/gameengine/GameLogic/CMakeLists.txt b/source/gameengine/GameLogic/CMakeLists.txt
index e8de2ebd53c..d2c6731d530 100644
--- a/source/gameengine/GameLogic/CMakeLists.txt
+++ b/source/gameengine/GameLogic/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
@@ -34,7 +34,7 @@ SET(INC
../../../source/gameengine/Rasterizer
)
-SET(SRC
+set(SRC
Joystick/SCA_Joystick.cpp
Joystick/SCA_JoystickEvents.cpp
SCA_2DFilterActuator.cpp
@@ -123,10 +123,10 @@ SET(SRC
SCA_XORController.h
)
-IF(WITH_SDL)
- SET(INC ${INC} ${SDL_INCLUDE_DIR})
-ELSE(WITH_SDL)
- ADD_DEFINITIONS(-DDISABLE_SDL)
-ENDIF(WITH_SDL)
+if(WITH_SDL)
+ set(INC ${INC} ${SDL_INCLUDE_DIR})
+else()
+ add_definitions(-DDISABLE_SDL)
+endif()
-BLENDERLIB(ge_logic "${SRC}" "${INC}")
+blenderlib(ge_logic "${SRC}" "${INC}")
diff --git a/source/gameengine/GamePlayer/CMakeLists.txt b/source/gameengine/GamePlayer/CMakeLists.txt
index f0ce3afbe10..ab89b18a09b 100644
--- a/source/gameengine/GamePlayer/CMakeLists.txt
+++ b/source/gameengine/GamePlayer/CMakeLists.txt
@@ -24,9 +24,9 @@
#
# ***** END GPL LICENSE BLOCK *****
-ADD_SUBDIRECTORY(common)
-ADD_SUBDIRECTORY(ghost)
+add_subdirectory(common)
+add_subdirectory(ghost)
-IF(WITH_WEBPLUGIN)
- ADD_SUBDIRECTORY(xembed)
-ENDIF(WITH_WEBPLUGIN)
+if(WITH_WEBPLUGIN)
+ add_subdirectory(xembed)
+endif()
diff --git a/source/gameengine/GamePlayer/common/CMakeLists.txt b/source/gameengine/GamePlayer/common/CMakeLists.txt
index d3b053c90b1..e0338f672e0 100644
--- a/source/gameengine/GamePlayer/common/CMakeLists.txt
+++ b/source/gameengine/GamePlayer/common/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../../intern/string
../../../../intern/ghost
@@ -56,7 +56,7 @@ SET(INC
${ZLIB_INC}
)
-SET(SRC
+set(SRC
bmfont.cpp
GPC_Canvas.cpp
GPC_Engine.cpp
@@ -79,6 +79,6 @@ SET(SRC
GPC_System.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-BLENDERLIB_NOLIST(ge_player_common "${SRC}" "${INC}")
+blenderlib_nolist(ge_player_common "${SRC}" "${INC}")
diff --git a/source/gameengine/GamePlayer/ghost/CMakeLists.txt b/source/gameengine/GamePlayer/ghost/CMakeLists.txt
index 906ece9ded8..7078296ac32 100644
--- a/source/gameengine/GamePlayer/ghost/CMakeLists.txt
+++ b/source/gameengine/GamePlayer/ghost/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../../intern/string
../../../../intern/ghost
@@ -57,7 +57,7 @@ SET(INC
${PYTHON_INC}
)
-SET(SRC
+set(SRC
GPG_Application.cpp
GPG_Canvas.cpp
GPG_ghost.cpp
@@ -70,10 +70,10 @@ SET(SRC
GPG_System.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-IF(WITH_CODEC_FFMPEG)
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ add_definitions(-DWITH_FFMPEG)
+endif()
-BLENDERLIB_NOLIST(ge_player_ghost "${SRC}" "${INC}")
+blenderlib_nolist(ge_player_ghost "${SRC}" "${INC}")
diff --git a/source/gameengine/Ketsji/CMakeLists.txt b/source/gameengine/Ketsji/CMakeLists.txt
index a7c8ad9d0dd..4931299a8e5 100644
--- a/source/gameengine/Ketsji/CMakeLists.txt
+++ b/source/gameengine/Ketsji/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
@@ -54,7 +54,7 @@ SET(INC
../../../extern/glew/include
)
-SET(SRC
+set(SRC
BL_BlenderShader.cpp
BL_Material.cpp
BL_Shader.cpp
@@ -200,22 +200,22 @@ SET(SRC
BL_Texture.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-IF(WITH_SDL)
- SET(INC ${INC} ${SDL_INCLUDE_DIR})
-ELSE(WITH_SDL)
- ADD_DEFINITIONS(-DDISABLE_SDL)
-ENDIF(WITH_SDL)
+if(WITH_SDL)
+ set(INC ${INC} ${SDL_INCLUDE_DIR})
+else()
+ add_definitions(-DDISABLE_SDL)
+endif()
-IF(WITH_CODEC_FFMPEG)
- ADD_DEFINITIONS(-DWITH_FFMPEG)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ add_definitions(-DWITH_FFMPEG)
+endif()
-IF(WITH_BULLET)
- ADD_DEFINITIONS(-DUSE_BULLET)
- LIST(APPEND INC ../../../extern/bullet2/src)
- LIST(APPEND INC ../../../source/gameengine/Physics/Bullet )
-ENDIF(WITH_BULLET)
+if(WITH_BULLET)
+ add_definitions(-DUSE_BULLET)
+ list(APPEND INC ../../../extern/bullet2/src)
+ list(APPEND INC ../../../source/gameengine/Physics/Bullet )
+endif()
-BLENDERLIB(ge_logic_ketsji "${SRC}" "${INC}")
+blenderlib(ge_logic_ketsji "${SRC}" "${INC}")
diff --git a/source/gameengine/Ketsji/KXNetwork/CMakeLists.txt b/source/gameengine/Ketsji/KXNetwork/CMakeLists.txt
index 687f19b9022..a88fe0c5252 100644
--- a/source/gameengine/Ketsji/KXNetwork/CMakeLists.txt
+++ b/source/gameengine/Ketsji/KXNetwork/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../../source/kernel/gen_system
../../../../intern/string
@@ -36,7 +36,7 @@ SET(INC
../../../../source/gameengine/Network
)
-SET(SRC
+set(SRC
KX_NetworkEventManager.cpp
KX_NetworkMessageActuator.cpp
KX_NetworkMessageSensor.cpp
@@ -50,4 +50,4 @@ SET(SRC
KX_NetworkObjectSensor.h
)
-BLENDERLIB(ge_logic_network "${SRC}" "${INC}")
+blenderlib(ge_logic_network "${SRC}" "${INC}")
diff --git a/source/gameengine/Network/CMakeLists.txt b/source/gameengine/Network/CMakeLists.txt
index c337d6f48cb..dd64f0e8437 100644
--- a/source/gameengine/Network/CMakeLists.txt
+++ b/source/gameengine/Network/CMakeLists.txt
@@ -24,14 +24,14 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../intern/string
../../../intern/moto/include
)
-SET(SRC
+set(SRC
NG_NetworkMessage.cpp
NG_NetworkObject.cpp
NG_NetworkScene.cpp
@@ -42,4 +42,4 @@ SET(SRC
NG_NetworkScene.h
)
-BLENDERLIB(ge_logic_ngnetwork "${SRC}" "${INC}")
+blenderlib(ge_logic_ngnetwork "${SRC}" "${INC}")
diff --git a/source/gameengine/Network/LoopBackNetwork/CMakeLists.txt b/source/gameengine/Network/LoopBackNetwork/CMakeLists.txt
index e7a170fef98..b26a87666dc 100644
--- a/source/gameengine/Network/LoopBackNetwork/CMakeLists.txt
+++ b/source/gameengine/Network/LoopBackNetwork/CMakeLists.txt
@@ -24,17 +24,17 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../../source/kernel/gen_system
../../../../intern/string
../../../../source/gameengine/Network
)
-SET(SRC
+set(SRC
NG_LoopBackNetworkDeviceInterface.cpp
NG_LoopBackNetworkDeviceInterface.h
)
-BLENDERLIB(ge_logic_loopbacknetwork "${SRC}" "${INC}")
+blenderlib(ge_logic_loopbacknetwork "${SRC}" "${INC}")
diff --git a/source/gameengine/Physics/Bullet/CMakeLists.txt b/source/gameengine/Physics/Bullet/CMakeLists.txt
index 7a48c774cb9..da585803783 100644
--- a/source/gameengine/Physics/Bullet/CMakeLists.txt
+++ b/source/gameengine/Physics/Bullet/CMakeLists.txt
@@ -25,9 +25,9 @@
# ***** END GPL LICENSE BLOCK *****
# since this includes bullet we get errors from the headers too
-REMOVE_STRICT_FLAGS()
+remove_strict_flags()
-SET(INC
+set(INC
.
../common
../../../../extern/bullet2/src
@@ -47,7 +47,7 @@ SET(INC
${PYTHON_INC}
)
-SET(SRC
+set(SRC
CcdPhysicsEnvironment.cpp
CcdPhysicsController.cpp
CcdGraphicController.cpp
@@ -57,8 +57,8 @@ SET(SRC
CcdPhysicsEnvironment.h
)
-IF(WITH_BULLET)
- ADD_DEFINITIONS(-DUSE_BULLET)
-ENDIF(WITH_BULLET)
+if(WITH_BULLET)
+ add_definitions(-DUSE_BULLET)
+endif()
-BLENDERLIB(ge_phys_bullet "${SRC}" "${INC}")
+blenderlib(ge_phys_bullet "${SRC}" "${INC}")
diff --git a/source/gameengine/Physics/Dummy/CMakeLists.txt b/source/gameengine/Physics/Dummy/CMakeLists.txt
index 0e852f50c76..ab633b807e0 100644
--- a/source/gameengine/Physics/Dummy/CMakeLists.txt
+++ b/source/gameengine/Physics/Dummy/CMakeLists.txt
@@ -24,15 +24,15 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../common
)
-SET(SRC
+set(SRC
DummyPhysicsEnvironment.cpp
DummyPhysicsEnvironment.h
)
-BLENDERLIB(ge_phys_dummy "${SRC}" "${INC}")
+blenderlib(ge_phys_dummy "${SRC}" "${INC}")
diff --git a/source/gameengine/Physics/common/CMakeLists.txt b/source/gameengine/Physics/common/CMakeLists.txt
index aacb497674d..bc095822936 100644
--- a/source/gameengine/Physics/common/CMakeLists.txt
+++ b/source/gameengine/Physics/common/CMakeLists.txt
@@ -24,12 +24,12 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../Dummy
)
-SET(SRC
+set(SRC
PHY_IMotionState.cpp
PHY_IController.cpp
PHY_IPhysicsController.cpp
@@ -47,4 +47,4 @@ SET(SRC
PHY_Pro.h
)
-BLENDERLIB(ge_phys_common "${SRC}" "${INC}")
+blenderlib(ge_phys_common "${SRC}" "${INC}")
diff --git a/source/gameengine/Rasterizer/CMakeLists.txt b/source/gameengine/Rasterizer/CMakeLists.txt
index 7aeeafc5aa1..6971c74b55a 100644
--- a/source/gameengine/Rasterizer/CMakeLists.txt
+++ b/source/gameengine/Rasterizer/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/kernel/gen_system
../../../source/blender/makesdna
@@ -38,7 +38,7 @@ SET(INC
${PYTHON_INC}
)
-SET(SRC
+set(SRC
RAS_2DFilterManager.cpp
RAS_BucketManager.cpp
RAS_FramingManager.cpp
@@ -79,6 +79,6 @@ SET(SRC
RAS_OpenGLFilters/RAS_Sobel2DFilter.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-BLENDERLIB(ge_rasterizer "${SRC}" "${INC}")
+blenderlib(ge_rasterizer "${SRC}" "${INC}")
diff --git a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt
index bf0f979accf..ebdfb667443 100644
--- a/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt
+++ b/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
../../../../source/kernel/gen_system
../../../../intern/string
../../../../intern/moto/include
@@ -39,7 +39,7 @@ SET(INC
../../../../source/blender/blenloader
)
-SET(SRC
+set(SRC
RAS_GLExtensionManager.cpp
RAS_ListRasterizer.cpp
RAS_OpenGLRasterizer.cpp
@@ -51,6 +51,6 @@ SET(SRC
RAS_VAOpenGLRasterizer.h
)
-ADD_DEFINITIONS(-DGLEW_STATIC)
+add_definitions(-DGLEW_STATIC)
-BLENDERLIB(ge_oglrasterizer "${SRC}" "${INC}")
+blenderlib(ge_oglrasterizer "${SRC}" "${INC}")
diff --git a/source/gameengine/SceneGraph/CMakeLists.txt b/source/gameengine/SceneGraph/CMakeLists.txt
index 72472cb9a23..6c133af09f7 100644
--- a/source/gameengine/SceneGraph/CMakeLists.txt
+++ b/source/gameengine/SceneGraph/CMakeLists.txt
@@ -24,12 +24,12 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../intern/moto/include
)
-SET(SRC
+set(SRC
SG_BBox.cpp
SG_Controller.cpp
SG_IObject.cpp
@@ -48,4 +48,4 @@ SET(SRC
SG_Tree.h
)
-BLENDERLIB(ge_scenegraph "${SRC}" "${INC}")
+blenderlib(ge_scenegraph "${SRC}" "${INC}")
diff --git a/source/gameengine/VideoTexture/CMakeLists.txt b/source/gameengine/VideoTexture/CMakeLists.txt
index 10c9bf3755a..fff9ff95c25 100644
--- a/source/gameengine/VideoTexture/CMakeLists.txt
+++ b/source/gameengine/VideoTexture/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
.
../../../source/gameengine/Ketsji
../../../source/gameengine/Expressions
@@ -48,7 +48,7 @@ SET(INC
../../../extern/glew/include
)
-SET(SRC
+set(SRC
Exception.cpp
FilterBase.cpp
FilterBlueScreen.cpp
@@ -85,10 +85,10 @@ SET(SRC
VideoFFmpeg.h
)
-IF(WITH_CODEC_FFMPEG)
- SET(INC ${INC} ${FFMPEG_INC} ${PTHREADS_INC})
- ADD_DEFINITIONS(-DWITH_FFMPEG)
- ADD_DEFINITIONS(-D__STDC_CONSTANT_MACROS)
-ENDIF(WITH_CODEC_FFMPEG)
+if(WITH_CODEC_FFMPEG)
+ set(INC ${INC} ${FFMPEG_INC} ${PTHREADS_INC})
+ add_definitions(-DWITH_FFMPEG)
+ add_definitions(-D__STDC_CONSTANT_MACROS)
+endif()
-BLENDERLIB(ge_videotex "${SRC}" "${INC}")
+blenderlib(ge_videotex "${SRC}" "${INC}")
diff --git a/source/kernel/CMakeLists.txt b/source/kernel/CMakeLists.txt
index aae553b7b6d..de97d425720 100644
--- a/source/kernel/CMakeLists.txt
+++ b/source/kernel/CMakeLists.txt
@@ -24,7 +24,7 @@
#
# ***** END GPL LICENSE BLOCK *****
-SET(INC
+set(INC
gen_messaging
gen_system
../../intern/string
@@ -32,7 +32,7 @@ SET(INC
../../source/blender/blenloader
)
-SET(SRC
+set(SRC
gen_messaging/intern/messaging.c
gen_system/GEN_HashedPtr.cpp
gen_system/SYS_SingletonSystem.cpp
@@ -45,4 +45,4 @@ SET(SRC
gen_system/SYS_System.h
)
-BLENDERLIB(bf_gen_system "${SRC}" "${INC}")
+blenderlib(bf_gen_system "${SRC}" "${INC}")