Add missing defines for .rc file.
authorNathan Letwory <nathan@letworyinteractive.com>
Fri, 8 Apr 2011 22:07:17 +0000 (22:07 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Fri, 8 Apr 2011 22:07:17 +0000 (22:07 +0000)
source/blenderplayer/CMakeLists.txt

index f40c240d7c54a7b92688729fa9a2946199f1a0c6..d48228407cb42b4dcaaa1a84dd951a9816576248 100644 (file)
@@ -40,6 +40,16 @@ add_custom_command(
 )
 
 if(WIN32 AND NOT UNIX)
+       string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1)
+       string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2)
+       string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3)
+       add_definitions(
+               -DBLEN_VER_RC_STR=${BLENDER_VERSION}
+               -DBLEN_VER_RC_1=${bver1}
+               -DBLEN_VER_RC_2=${bver2}
+               -DBLEN_VER_RC_3=${bver3}
+               -DBLEN_VER_RC_4=0
+       )
        add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
 else()
        add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)