Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/Modules/GTestTesting.cmake
| Show All 31 Lines | set(TEST_INC_SYS | ||||
| ${GFLAGS_INCLUDE_DIRS} | ${GFLAGS_INCLUDE_DIRS} | ||||
| ${CMAKE_SOURCE_DIR}/extern/gtest/include | ${CMAKE_SOURCE_DIR}/extern/gtest/include | ||||
| ${CMAKE_SOURCE_DIR}/extern/gmock/include | ${CMAKE_SOURCE_DIR}/extern/gmock/include | ||||
| ) | ) | ||||
| unset(_current_include_directories) | unset(_current_include_directories) | ||||
| if(WIN32) | if(WIN32) | ||||
| set(MANIFEST "${CMAKE_BINARY_DIR}/tests.exe.manifest") | set(MANIFEST "${CMAKE_BINARY_DIR}/tests.exe.manifest") | ||||
| endif() | endif() | ||||
| add_definitions(-DBLENDER_GFLAGS_NAMESPACE=${GFLAGS_NAMESPACE}) | |||||
| add_definitions(${GFLAGS_DEFINES}) | |||||
| add_definitions(${GLOG_DEFINES}) | |||||
| add_executable(${TARGET_NAME} ${ARG_SRC} ${MANIFEST}) | add_executable(${TARGET_NAME} ${ARG_SRC} ${MANIFEST}) | ||||
| target_include_directories(${TARGET_NAME} PUBLIC "${TEST_INC}") | target_include_directories(${TARGET_NAME} PUBLIC "${TEST_INC}") | ||||
| target_include_directories(${TARGET_NAME} SYSTEM PUBLIC "${TEST_INC_SYS}") | target_include_directories(${TARGET_NAME} SYSTEM PUBLIC "${TEST_INC_SYS}") | ||||
| target_link_libraries(${TARGET_NAME} ${ARG_EXTRA_LIBS} ${PLATFORM_LINKLIBS}) | target_link_libraries(${TARGET_NAME} ${ARG_EXTRA_LIBS} ${PLATFORM_LINKLIBS}) | ||||
| if(WITH_TBB) | if(WITH_TBB) | ||||
| # Force TBB libraries to be in front of MKL (part of OpenImageDenoise), so | # Force TBB libraries to be in front of MKL (part of OpenImageDenoise), so | ||||
| # that it is initialized before MKL and static library initialization order | # that it is initialized before MKL and static library initialization order | ||||
| # issues are avoided. | # issues are avoided. | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||