aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2021-08-16 02:56:49 +0100
committerRichard Knight <q@1bpm.net>2021-08-16 02:56:49 +0100
commit2e854bcb40d535957b589ad02e3f280e00b47865 (patch)
tree8fe2abbc86130af2d2ff74bbce943a68f2ec4c6d /Plugin.cmake
downloadcsound-datacore-2e854bcb40d535957b589ad02e3f280e00b47865.tar.gz
csound-datacore-2e854bcb40d535957b589ad02e3f280e00b47865.tar.bz2
csound-datacore-2e854bcb40d535957b589ad02e3f280e00b47865.zip
pre strip down
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..d314502
--- /dev/null
+++ b/Plugin.cmake
@@ -0,0 +1,14 @@
+if(NOT LINUX)
+ message(FATAL_ERROR "Only Linux is supported")
+endif()
+
+set(INCLUDES ${CSOUND_INCLUDE_DIRS} "include")
+set(PLUGIN_NAME memread)
+
+# Dependencies
+ # None
+
+# Source files
+set(CPPFILES src/opcodes.cpp src/pmparser.cpp src/maketable.cpp)
+make_plugin(${PLUGIN_NAME} "${CPPFILES}")
+target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES})