simplified data_to_c macro in cmake
[blender.git] / source / blender / editors / datafiles / CMakeLists.txt
index c0edd8d263202ddef5f403de0c242e894d908b20..31846f9b3007ec26ceeebaacfbcf4a32ac1281d0 100644 (file)
@@ -80,16 +80,10 @@ if(WITH_BLENDER)
                        vertexdraw.png.c
                )
 
-               data_to_c(${CMAKE_SOURCE_DIR}/release/datafiles/preview.blend
-                         ${CMAKE_CURRENT_BINARY_DIR}/preview.blend.c
-                         datatoc_preview_blend SRC)
-
+               data_to_c_simple(../../../../release/datafiles/preview.blend SRC)
        endif()
 
-       data_to_c(${CMAKE_SOURCE_DIR}/release/datafiles/startup.blend
-                 ${CMAKE_CURRENT_BINARY_DIR}/startup.blend.c
-                 datatoc_startup_blend SRC)
-
+       data_to_c_simple(../../../../release/datafiles/startup.blend SRC)
 endif()
 
 blender_add_lib(bf_editor_datafiles "${SRC}" "${INC}" "${INC_SYS}")