CMake option 'WITH_HEADLESS' to build blender in headless mode (no x11/xlib) with...
[blender.git] / source / creator / CMakeLists.txt
index c3eae586599ee82e077abcf56b382c7d636f7e7b..db467eebb5c26f5c126af39bae68641d1f821b0f 100644 (file)
@@ -81,6 +81,10 @@ if(WITH_PYTHON)
        endif()
 endif()
 
+if(WITH_HEADLESS)
+       add_definitions(-DWITH_HEADLESS)
+endif()
+
 if(WITH_GAMEENGINE)
        blender_include_dirs(../gameengine/BlenderRoutines)