Fix GTests compilations on Windows

Unfortunately this doesn't make all tests compilable due
to all sort of weird and wonderful bad levels includes
on Windows (G referenced from bf_blenlib) but at least
allows to selectively build tests for now.
This commit is contained in:
Sergey Sharybin 2016-02-06 15:03:32 +01:00
parent d978f23f71
commit e1f5b2b4c1
2 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,7 @@ macro(BLENDER_SRC_GTEST_EX NAME SRC EXTRA_LIBS DO_ADD_TEST)
add_executable(${NAME}_test ${SRC})
target_link_libraries(${NAME}_test
${EXTRA_LIBS}
${PLATFORM_LINKLIBS}
bf_testing_main
bf_intern_guardedalloc
extern_gtest

View File

@ -47,4 +47,7 @@ set(SRC
testing.h
)
add_definitions(${GFLAGS_DEFINES})
add_definitions(${GLOG_DEFINES})
blender_add_lib(bf_testing_main "${SRC}" "${INC}" "${INC_SYS}")