Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/CMakeLists.txt
| Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | |||||
| if(WITH_FREESTYLE) | if(WITH_FREESTYLE) | ||||
| add_definitions(-DWITH_FREESTYLE) | add_definitions(-DWITH_FREESTYLE) | ||||
| endif() | endif() | ||||
| if(WITH_XR_OPENXR) | if(WITH_XR_OPENXR) | ||||
| add_definitions(-DWITH_XR_OPENXR) | add_definitions(-DWITH_XR_OPENXR) | ||||
| endif() | endif() | ||||
| if(WITH_GTESTS) | |||||
| if(WITH_OPENGL_DRAW_TESTS) | |||||
| add_definitions(-DWITH_OPENGL_DRAW_TESTS) | |||||
| endif() | |||||
| endif() | |||||
| add_definitions(${GL_DEFINITIONS}) | add_definitions(${GL_DEFINITIONS}) | ||||
| blender_add_lib(bf_draw "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | blender_add_lib(bf_draw "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") | ||||
| if(WITH_GTESTS) | |||||
| if(WITH_OPENGL_DRAW_TESTS) | |||||
| set(TEST_SRC | |||||
| tests/shaders_test.cc | |||||
| ) | |||||
| set(TEST_INC | |||||
| "../../../intern/ghost/" | |||||
| ) | |||||
| set(TEST_LIB | |||||
| bf_draw | |||||
| ) | |||||
| include(GTestTesting) | |||||
| blender_add_test_lib(bf_draw_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}") | |||||
| endif() | |||||
| endif() | |||||
| No newline at end of file | |||||