aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholbrcholberton@gmail.com>2020-06-03 21:27:20 -0400
committerTaylor Holberton <taylorcholbrcholberton@gmail.com>2020-06-03 21:27:20 -0400
commit0c601a3c65d87343f4cb12339f90ffb612069000 (patch)
tree734670d2b014c3492985a4db02098098ba32f4e2
parent522a27aa163335a01fd709687d36165729a3f083 (diff)
Added tinywavinfo to CMake build
-rw-r--r--CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ba1aea3..7696ade 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,8 +41,8 @@ add_example("pcm-writei" "examples/pcm-writei.c")
macro(ADD_UTIL UTIL)
add_executable(${UTIL} ${ARGN})
- target_link_libraries(${UTIL} "tinyalsa")
- target_link_libraries(${UTIL} "dl")
+ target_link_libraries(${UTIL} PRIVATE "tinyalsa")
+ target_link_libraries(${UTIL} PRIVATE "dl")
target_compile_options(${UTIL} PRIVATE -Wall -Wextra -Werror -Wfatal-errors)
target_include_directories(${UTIL} PRIVATE "include")
endmacro(ADD_UTIL UTIL)
@@ -51,6 +51,9 @@ add_util("tinyplay" "utils/tinyplay.c")
add_util("tinycap" "utils/tinycap.c")
add_util("tinypcminfo" "utils/tinypcminfo.c")
add_util("tinymix" "utils/tinymix.c")
+add_util("tinywavinfo" "utils/tinywavinfo.c")
+
+target_link_libraries("tinywavinfo" PRIVATE m)
install(FILES ${HDRS}
DESTINATION "include/tinyalsa")