summaryrefslogtreecommitdiffstats
path: root/cmake/FindFAAC.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindFAAC.cmake')
-rw-r--r--cmake/FindFAAC.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/FindFAAC.cmake b/cmake/FindFAAC.cmake
new file mode 100644
index 0000000..61e0d27
--- /dev/null
+++ b/cmake/FindFAAC.cmake
@@ -0,0 +1,13 @@
+
+find_path(FAAC_INCLUDE_DIR faac.h)
+
+find_library(FAAC_LIBRARY faac)
+
+find_package_handle_standard_args(FAAC DEFAULT_MSG FAAC_INCLUDE_DIR FAAC_LIBRARY)
+
+if(FAAC_FOUND)
+ set(FAAC_LIBRARIES ${FAAC_LIBRARY})
+ set(FAAC_INCLUDE_DIRS ${FAAC_INCLUDE_DIR})
+endif()
+
+mark_as_advanced(FAAC_INCLUDE_DIR FAAC_LIBRARY)