PassengerStatistics/Tools/LeakTracer/CMakeLists.txt

22 lines
488 B
CMake
Raw Normal View History

2024-03-23 11:57:23 +08:00
add_executable(LeakTracer main.cpp
# LeakTracer.h LeakTracer.cpp
MemoryAllocationStackTracer.h MemoryAllocationStackTracer.cpp
)
2024-03-25 00:09:33 +08:00
target_compile_definitions(LeakTracer
PRIVATE BOOST_STACKTRACE_USE_ADDR2LINE
)
2024-03-23 11:57:23 +08:00
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
)