aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
authorRichard <q@1bpm.net>2025-09-13 16:37:04 +0100
committerRichard <q@1bpm.net>2025-09-13 16:37:04 +0100
commit1376945b3d351ceeb3ac38210f66627d91f413fd (patch)
treed20593c6287ea024ce36c854c5a9244f20c1d917 /Plugin.cmake
downloadcsound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.tar.gz
csound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.tar.bz2
csound-cueextract-1376945b3d351ceeb3ac38210f66627d91f413fd.zip
initialHEADmaster
Diffstat (limited to 'Plugin.cmake')
-rw-r--r--Plugin.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/Plugin.cmake b/Plugin.cmake
new file mode 100644
index 0000000..3bce1b2
--- /dev/null
+++ b/Plugin.cmake
@@ -0,0 +1,14 @@
+set(PLUGIN_NAME cueextract)
+set(INCLUDES ${CSOUND_INCLUDE_DIRS})
+set(LIBS "")
+
+# Dependencies
+find_package(LibSndFile)
+check_deps(LIBSNDFILE_FOUND)
+list(APPEND LIBS ${LIBSNDFILE_LIBRARY})
+list(APPEND INCLUDES ${LIBSNDFILE_INCLUDE_DIR})
+
+# Source files
+set(CPPFILES src/opcodes.cpp)
+make_plugin(${PLUGIN_NAME} "${CPPFILES}" ${LIBS})
+target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES})