diff options
Diffstat (limited to 'intern/cycles/test/CMakeLists.txt')
-rw-r--r-- | intern/cycles/test/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/intern/cycles/test/CMakeLists.txt b/intern/cycles/test/CMakeLists.txt new file mode 100644 index 00000000000..f8bd58c689f --- /dev/null +++ b/intern/cycles/test/CMakeLists.txt @@ -0,0 +1,30 @@ +if(WITH_GTESTS) + Include(GTestTesting) + + # Otherwise we get warnings here that we cant fix in external projects + remove_strict_flags() +endif() + +macro(CYCLES_TEST SRC EXTRA_LIBS) + if(WITH_GTESTS) + BLENDER_SRC_GTEST("cycles_${SRC}" "${SRC}_test.cpp" "${EXTRA_LIBS}") + endif() +endmacro() + +set(INC + . + .. + ../util +) + +include_directories(${INC}) + +link_directories(${BOOST_LIBPATH}) +link_directories(${OPENIMAGEIO_LIBPATH}) + +set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS}") +set(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} ${PLATFORM_LINKFLAGS_DEBUG}") + +CYCLES_TEST(util_aligned_malloc "cycles_util") +CYCLES_TEST(util_path "cycles_util;${BOOST_LIBRARIES};${OPENIMAGEIO_LIBRARIES}") +CYCLES_TEST(util_string "cycles_util;${BOOST_LIBRARIES}") |