PassengerStatistics/Tools/LeakTracer/CMakeLists.txt
2024-03-25 00:09:33 +08:00

22 lines
488 B
CMake

add_executable(LeakTracer main.cpp
# LeakTracer.h LeakTracer.cpp
MemoryAllocationStackTracer.h MemoryAllocationStackTracer.cpp
)
target_compile_definitions(LeakTracer
PRIVATE BOOST_STACKTRACE_USE_ADDR2LINE
)
target_include_directories(LeakTracer
PRIVATE ${Libraries_ROOT}/LeakTracer/include
)
target_link_directories(LeakTracer
PRIVATE ${Libraries_ROOT}/LeakTracer
)
target_link_libraries(LeakTracer
PUBLIC Universal
-Wl,--wrap=malloc
-Wl,--wrap=free
)