Changeset View
Changeset View
Standalone View
Standalone View
build_files/cmake/Modules/GTestTesting.cmake
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | target_link_libraries(${TARGET_NAME} | ||||
| extern_gmock | extern_gmock | ||||
| # needed for glog | # needed for glog | ||||
| ${PTHREADS_LIBRARIES} | ${PTHREADS_LIBRARIES} | ||||
| ${GLOG_LIBRARIES} | ${GLOG_LIBRARIES} | ||||
| ${GFLAGS_LIBRARIES}) | ${GFLAGS_LIBRARIES}) | ||||
| if(WITH_OPENMP_STATIC) | if(WITH_OPENMP_STATIC) | ||||
| target_link_libraries(${TARGET_NAME} ${OpenMP_LIBRARIES}) | target_link_libraries(${TARGET_NAME} ${OpenMP_LIBRARIES}) | ||||
| endif() | endif() | ||||
| if(UNIX AND NOT APPLE) | |||||
| target_link_libraries(${TARGET_NAME} bf_intern_libc_compat) | |||||
| endif() | |||||
| get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | ||||
| if(GENERATOR_IS_MULTI_CONFIG) | if(GENERATOR_IS_MULTI_CONFIG) | ||||
| string(REPLACE "\${BUILD_TYPE}" "$<CONFIG>" TEST_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) | string(REPLACE "\${BUILD_TYPE}" "$<CONFIG>" TEST_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) | ||||
| else() | else() | ||||
| string(REPLACE "\${BUILD_TYPE}" "" TEST_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) | string(REPLACE "\${BUILD_TYPE}" "" TEST_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) | ||||
| endif() | endif() | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||