summaryrefslogtreecommitdiff
path: root/src/codecs/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/codecs/CMakeLists.txt')
-rw-r--r--src/codecs/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/codecs/CMakeLists.txt b/src/codecs/CMakeLists.txt
index 4a8918ae..4f89f370 100644
--- a/src/codecs/CMakeLists.txt
+++ b/src/codecs/CMakeLists.txt
@@ -1,6 +1,8 @@
idf_component_register(
SRCS "codec.cpp" "mad.cpp"
- INCLUDE_DIRS "include")
+ INCLUDE_DIRS "include"
+ REQUIRES "result")
-target_compile_options(${COMPONENT_LIB} PRIVATE ${EXTRA_WARNINGS})
add_dependencies("${COMPONENT_LIB}" libmad)
+target_compile_options("${COMPONENT_LIB}" PRIVATE ${EXTRA_WARNINGS})
+target_include_directories("${COMPONENT_LIB}" PRIVATE "${LIBMAD_INCLUDE}")