aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
authorRichard Knight <q@1bpm.net>2024-04-09 22:58:44 +0100
committerRichard Knight <q@1bpm.net>2024-04-09 22:58:44 +0100
commitd4701791a2d04ff52bea456ebb34f4d79819f97e (patch)
treec582c6b10b271c550c9618cb0d818c5b27a98620 /Plugin.cmake
downloadcsound-curl-d4701791a2d04ff52bea456ebb34f4d79819f97e.tar.gz
csound-curl-d4701791a2d04ff52bea456ebb34f4d79819f97e.tar.bz2
csound-curl-d4701791a2d04ff52bea456ebb34f4d79819f97e.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..53368aa
--- /dev/null
+++ b/Plugin.cmake
@@ -0,0 +1,14 @@
+set(PLUGIN_NAME curl)
+set(LIBS "")
+set(INCLUDES ${CSOUND_INCLUDE_DIRS} "include")
+
+# Dependencies
+find_package(CURL)
+check_deps(CURL_FOUND)
+list(APPEND LIBS ${CURL_LIBRARIES})
+list(APPEND INCLUDES ${CURL_INCLUDE_DIRS})
+
+# Source files
+set(CPPFILES src/opcodes.cpp)
+make_plugin(${PLUGIN_NAME} "${CPPFILES}")
+target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES})