Merging r47535 through r47566 from trunk into soc-2011-tomato
[blender.git] / source / blenderplayer / CMakeLists.txt
index 2ca7019487f9ad24cbc2fce4724c2d99632e1831..99db5576fa0a31bd073712bf1fe628397a31d169 100644 (file)
@@ -31,12 +31,6 @@ if(WITH_CODEC_QUICKTIME)
        add_definitions(-DWITH_QUICKTIME)
 endif()
 
-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)
        string(SUBSTRING ${BLENDER_VERSION} 0 1 bver1)
        string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2)
@@ -60,10 +54,10 @@ if(WIN32 AND NOT UNIX)
                )
        endif()
 
-       add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc)
+       add_executable(blenderplayer ${EXETYPE} bad_level_call_stubs/stubs.c ../icons/winblender.rc)
 
 elseif(APPLE)
-       add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c)
+       add_executable(blenderplayer ${EXETYPE} bad_level_call_stubs/stubs.c)
        # setup Info.plist
        execute_process(COMMAND date "+%Y-%m-%d" OUTPUT_VARIABLE BLENDER_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
        set(PLAYER_SOURCEDIR ${CMAKE_SOURCE_DIR}/source/darwin/blenderplayer.app)
@@ -74,7 +68,7 @@ elseif(APPLE)
                MACOSX_BUNDLE_LONG_VERSION_STRING "${BLENDER_VERSION} ${BLENDER_DATE}")
 
 else()
-       add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c)
+       add_executable(blenderplayer bad_level_call_stubs/stubs.c)
 endif()
 
 add_dependencies(blenderplayer makesdna)