--- tests/CMakeLists.txt.orig	2016-12-23 11:50:27 UTC
+++ tests/CMakeLists.txt
@@ -36,6 +36,11 @@ set(SRCS
 if(BUILD_TOOLS)
 	set(SRCS ${SRCS} ../src/audio/ffmpeg_audio_reader_test.cpp)
 	link_libraries(fpcalc_libs)
+	include_directories(
+		${FFMPEG_LIBAVCODEC_INCLUDE_DIRS}
+		${FFMPEG_LIBAVFORMAT_INCLUDE_DIRS}
+		${FFMPEG_LIBAVUTIL_INCLUDE_DIRS}
+	)
 endif()
 
 add_executable(all_tests ${SRCS} $<TARGET_OBJECTS:chromaprint_objs>)
