From 532ac1163ceea857df0f3f144de0dde837712bbe Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 15 Sep 2020 11:16:35 +0200 Subject: Tests: bundle tests for some modules in their own executables The ffmpeg, guardedalloc and blenlib are quite isolated and putting them in their own executable separate from blender_test is faster for development than linking the entire blender_tests executable. For Cycles, this also bundles all the unit tests into one executable. Ref T79958 Differential Revision: https://developer.blender.org/D8714 --- source/blender/blenlib/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index e01459ac80e..b8de1e41d78 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -304,6 +304,7 @@ set(LIB extern_wcwidth ${FREETYPE_LIBRARY} + ${ZLIB_LIBRARIES} ) if(WITH_MEM_VALGRIND) @@ -431,7 +432,7 @@ if(WITH_GTESTS) bf_blenlib ) include(GTestTesting) - blender_add_test_lib(bf_blenlib_tests "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}") + blender_add_test_executable(blenlib "${TEST_SRC}" "${INC};${TEST_INC}" "${INC_SYS}" "${LIB};${TEST_LIB}") add_subdirectory(tests/performance) endif() -- cgit v1.2.3