Directly link malloctrace into test executables.
authorMilian Wolff <mail@milianw.de>
Wed, 4 Jun 2014 17:43:08 +0000 (19:43 +0200)
committerMilian Wolff <mail@milianw.de>
Wed, 4 Jun 2014 17:43:08 +0000 (19:43 +0200)
tests/CMakeLists.txt

index d0cdb50..20801f3 100644 (file)
@@ -1,6 +1,8 @@
 set(CMAKE_BUILD_TYPE Debug)
 
 add_executable(test_c test.c)
+target_link_libraries(test_c malloctrace)
 add_executable(test_cpp test.cpp)
+target_link_libraries(test_cpp malloctrace)
 add_executable(threaded threaded.cpp)
-target_link_libraries(threaded -lpthread)
+target_link_libraries(threaded -lpthread malloctrace)