unbreak cmake testing of heap-profiler
This commit is contained in:
parent
aaed4feb28
commit
608e6d0625
|
@ -792,10 +792,10 @@ if(GPERFTOOLS_BUILD_HEAP_PROFILER)
|
|||
add_test(sampling_test sampling_test)
|
||||
|
||||
if(GPERFTOOLS_BUILD_HEAP_PROFILER)
|
||||
add_executable(heap_profiler_unittest src/tests/heap-profiler_unittest.cc)
|
||||
target_link_libraries(heap_profiler_unittest tcmalloc)
|
||||
add_executable(heap-profiler_unittest src/tests/heap-profiler_unittest.cc)
|
||||
target_link_libraries(heap-profiler_unittest tcmalloc)
|
||||
add_test(NAME heap-profiler_unittest.sh
|
||||
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" heap-profiler_unittest)
|
||||
COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" "${CMAKE_CURRENT_BINARY_DIR}/heap-profiler_unittest")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -820,9 +820,9 @@ if(GPERFTOOLS_BUILD_DEBUGALLOC)
|
|||
add_test(sampling_debug_test sampling_debug_test)
|
||||
|
||||
if(GPERFTOOLS_BUILD_HEAP_PROFILER)
|
||||
add_executable(heap_profiler_debug_unittest src/tests/heap-profiler_unittest.cc)
|
||||
target_link_libraries(heap_profiler_debug_unittest tcmalloc_debug)
|
||||
add_test(heap-profiler_debug_unittest.sh "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" heap-profiler_debug_unittest)
|
||||
add_executable(heap-profiler_debug_unittest src/tests/heap-profiler_unittest.cc)
|
||||
target_link_libraries(heap-profiler_debug_unittest tcmalloc_debug)
|
||||
add_test(heap-profiler_debug_unittest.sh "${CMAKE_CURRENT_SOURCE_DIR}/src/tests/heap-profiler_unittest.sh" "${CMAKE_CURRENT_BINARY_DIR}/heap-profiler_debug_unittest")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue