aboutsummaryrefslogtreecommitdiff
path: root/Plugin.cmake
blob: b027b2427fef89e7520c7a8bad54359f27b79a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
set(PLUGIN_NAME opl)
set(INCLUDES "include" ${CSOUND_INCLUDE_DIRS})
set(LIBS "")

# Dependencies
find_package(ADLMIDI)
check_deps(ADLMIDI_FOUND)
list(APPEND LIBS ${ADLMIDI_LIBRARY})
list(APPEND INCLUDES ${ADLMIDI_INCLUDE_DIR})

# Source files
set(CPPFILES src/opcodes.cpp)
make_plugin(${PLUGIN_NAME} "${CPPFILES}" ${LIBS})
target_include_directories(${PLUGIN_NAME} PRIVATE ${INCLUDES})