Disable depth buffer writes while rendering smoke in the viewport.
[blender.git] / intern / cycles / test / CMakeLists.txt
1 if(WITH_GTESTS)
2         Include(GTestTesting)
3
4         # Otherwise we get warnings here that we cant fix in external projects
5         remove_strict_flags()
6 endif()
7
8 macro(CYCLES_TEST SRC EXTRA_LIBS)
9         if(WITH_GTESTS)
10                 BLENDER_SRC_GTEST("cycles_${SRC}" "${SRC}_test.cpp" "${EXTRA_LIBS}")
11         endif()
12 endmacro()
13
14 set(INC
15         .
16         ..
17         ../device
18         ../graph
19         ../kernel
20         ../render
21         ../util
22 )
23
24 set(ALL_CYCLES_LIBRARIES
25         cycles_render
26         cycles_device
27         cycles_bvh
28         cycles_graph
29         cycles_util
30         ${OPENIMAGEIO_LIBRARIES}
31 )
32 if(WITH_CYCLES_OSL)
33         list(APPEND ALL_CYCLES_LIBRARIES
34                 cycles_kernel_osl
35                 ${OSL_LIBRARIES}
36                 ${LLVM_LIBRARIES}
37         )
38 endif()
39 if(WITH_IMAGE_OPENJPEG AND NOT WITH_SYSTEM_OPENJPEG)
40         list(APPEND ALL_CYCLES_LIBRARIES
41                 extern_openjpeg
42         )
43 endif()
44 list(APPEND ALL_CYCLES_LIBRARIES
45         ${BOOST_LIBRARIES}
46 )
47
48 include_directories(${INC})
49
50 link_directories(${BOOST_LIBPATH})
51 link_directories(${OPENIMAGEIO_LIBPATH})
52
53 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS}")
54 set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${PLATFORM_LINKFLAGS_DEBUG}")
55
56 CYCLES_TEST(render_graph_finalize "${ALL_CYCLES_LIBRARIES}")
57 CYCLES_TEST(util_aligned_malloc "cycles_util")
58 CYCLES_TEST(util_path "cycles_util;${BOOST_LIBRARIES};${OPENIMAGEIO_LIBRARIES}")
59 CYCLES_TEST(util_string "cycles_util;${BOOST_LIBRARIES}")
60 CYCLES_TEST(util_task "cycles_util;${BOOST_LIBRARIES}")