aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2025-03-09 22:33:07 +0000
committerRichard <q@1bpm.net>2025-03-09 22:33:07 +0000
commite174c759182e11f85e221eff8684088eebd563a4 (patch)
tree70155a2ec6c9fbf46c821ebe66ab63c0f17fbd8d /Plugin.cmake
downloadcsound-shout-e174c759182e11f85e221eff8684088eebd563a4.tar.gz
csound-shout-e174c759182e11f85e221eff8684088eebd563a4.tar.bz2
csound-shout-e174c759182e11f85e221eff8684088eebd563a4.zip
initial
Diffstat (limited to 'Plugin.cmake')
-rw-r--r--Plugin.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Plugin.cmake b/Plugin.cmake
new file mode 100644
index 0000000..099c917
--- /dev/null
+++ b/Plugin.cmake
@@ -0,0 +1,16 @@
+set(PLUGIN_NAME shout)
+set(INCLUDES ${CSOUND_INCLUDE_DIRS})
+set(LIBS "")
+list(APPEND INCLUDES "include")
+
+# Dependencies
+find_package(Shout)
+find_package(Lame)
+check_deps(SHOUT_FOUND)
+list(APPEND LIBS ${SHOUT_LIBRARIES} ${LAME_LIBRARIES})
+list(APPEND INCLUDES ${SHOUT_INCLUDE_DIRS} ${LAME_INCLUDE_DIR})
+
+# Source files
+set(CPPFILES src/opcodes.cpp)
+make_plugin(${PLUGIN_NAME} "${CPPFILES}" ${LIBS})
+target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES})