link gperftools in the top CMakeLists.txt
parent
1091b9cd2d
commit
3980a439c0
|
@ -1,5 +1,4 @@
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Find Google perftools
|
# Find Google perftools
|
||||||
find_package(GooglePerfTools)
|
find_package(GooglePerfTools)
|
||||||
target_link_libraries(${PROJECT_NAME} ${GPERFTOOLS_TCMALLOC} ${GPERFTOOLS_PROFILER})
|
|
|
@ -147,6 +147,10 @@ if (GTSAM_USE_EIGEN_MKL)
|
||||||
target_include_directories(gtsam PUBLIC ${MKL_INCLUDE_DIR})
|
target_include_directories(gtsam PUBLIC ${MKL_INCLUDE_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (GOOGLE_PERFTOOLS_FOUND)
|
||||||
|
target_link_libraries(gtsam PRIVATE ${GPERFTOOLS_TCMALLOC} ${GPERFTOOLS_PROFILER})
|
||||||
|
endif()
|
||||||
|
|
||||||
# Add includes for source directories 'BEFORE' boost and any system include
|
# Add includes for source directories 'BEFORE' boost and any system include
|
||||||
# paths so that the compiler uses GTSAM headers in our source directory instead
|
# paths so that the compiler uses GTSAM headers in our source directory instead
|
||||||
# of any previously installed GTSAM headers.
|
# of any previously installed GTSAM headers.
|
||||||
|
|
Loading…
Reference in New Issue