diff --git a/src/yaw-tab/CMakeLists.txt b/src/yaw-tab/CMakeLists.txt index 1dde9d2..ea7d194 100644 --- a/src/yaw-tab/CMakeLists.txt +++ b/src/yaw-tab/CMakeLists.txt @@ -5,9 +5,12 @@ dpf_add_plugin(yaw-tab FILES_UI wtutil.cpp tab.cpp + rtstylus.cpp ui.cpp) target_include_directories(yaw-tab PUBLIC "." "../../lib/wintab" ) + +target_compile_definitions(yaw-tab PUBLIC YAW_USE_WINTAB=1 YAW_USE_RTSTYLUS=1) \ No newline at end of file diff --git a/src/yaw-tab/rtstylus.cpp b/src/yaw-tab/rtstylus.cpp new file mode 100644 index 0000000..e69de29 diff --git a/src/yaw-tab/ui.cpp b/src/yaw-tab/ui.cpp index e3222f3..3fa0ebf 100644 --- a/src/yaw-tab/ui.cpp +++ b/src/yaw-tab/ui.cpp @@ -1,5 +1,10 @@ #include "DistrhoUI.hpp" +#ifdef YAW_USE_WINTAB #include "tab.cpp" +#endif +#ifdef YAW_USE_RTSTYLUS +#include "rtstylus.cpp" +#endif START_NAMESPACE_DISTRHO