diff options
Diffstat (limited to 'Plugin.cmake')
-rw-r--r-- | Plugin.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Plugin.cmake b/Plugin.cmake new file mode 100644 index 0000000..099c917 --- /dev/null +++ b/Plugin.cmake @@ -0,0 +1,16 @@ +set(PLUGIN_NAME shout) +set(INCLUDES ${CSOUND_INCLUDE_DIRS}) +set(LIBS "") +list(APPEND INCLUDES "include") + +# Dependencies +find_package(Shout) +find_package(Lame) +check_deps(SHOUT_FOUND) +list(APPEND LIBS ${SHOUT_LIBRARIES} ${LAME_LIBRARIES}) +list(APPEND INCLUDES ${SHOUT_INCLUDE_DIRS} ${LAME_INCLUDE_DIR}) + +# Source files +set(CPPFILES src/opcodes.cpp) +make_plugin(${PLUGIN_NAME} "${CPPFILES}" ${LIBS}) +target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES}) |