aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
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})