aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Plugin.cmake')
-rw-r--r--Plugin.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/Plugin.cmake b/Plugin.cmake
index d314502..577ea55 100644
--- a/Plugin.cmake
+++ b/Plugin.cmake
@@ -1,14 +1,16 @@
-if(NOT LINUX)
- message(FATAL_ERROR "Only Linux is supported")
+set(PLUGIN_NAME datacore)
+set(CPPFILES src/opcodes.cpp src/maketable.cpp)
+
+if(LINUX)
+ set(CPPFILES ${CPPFILES} src/pmparser.cpp)
+ add_definitions("-DUSE_PROCMAPS")
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})