--- unittest/CMakeLists.txt.orig	2018-04-12 23:12:25 UTC
+++ unittest/CMakeLists.txt
@@ -92,7 +92,10 @@ add_executable(tnewamp1 tnewamp1.c ../sr
 target_link_libraries(tnewamp1 codec2)
 
 add_executable(tsrc tsrc.c)
-target_link_libraries(tsrc samplerate)
+target_link_libraries(tsrc ${SAMPLERATE_LIBRARY})
+set_target_properties(tsrc
+    PROPERTIES INCLUDE_DIRECTORIES ${SAMPLERATE_INCLUDE_DIR}
+)
 
 add_executable(tlininterp tlininterp.c)
 add_executable(tdec tdec.c)
