Add version message to all plugins (classes later)

nix
Owen Green 6 years ago
parent f441ed3f0a
commit ff04cc737f

@ -57,6 +57,8 @@ FetchContent_GetProperties(fluid_decomposition)
if(NOT fluid_decomposition_POPULATED)
FetchContent_Populate(fluid_decomposition)
add_subdirectory(${fluid_decomposition_SOURCE_DIR} ${fluid_decomposition_BINARY_DIR})
message(STATUS "GODDMAND DN DNSKD KSFJKJFSSKFJ JJ ${CMAKE_MODULE_PATH}")
include(flucoma_version)
endif()
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${CMAKE_SYSTEM_NAME}/plugins")

@ -1,6 +1,9 @@
#pragma once
#include "SCBufferAdaptor.hpp"
#include <FluidVersion.hpp>
#include <clients/common/FluidBaseClient.hpp>
#include <clients/common/Result.hpp>
#include <data/FluidTensor.hpp>
@ -467,6 +470,12 @@ class FluidSCWrapper : public impl::FluidSCWrapperBase<C>
template <size_t N, typename T>
using ControlSetter = Setter<FloatControlsIter&, N, T>;
static void doVersion(Unit *, sc_msg_iter *)
{
std::cout << "Fluid Corpus Manipualtion Toolkit version " << fluidVersion() << '\n';
}
public:
using Client = C;
using ParameterSetType = typename C::ParamSetType;
@ -493,6 +502,7 @@ public:
getName(name);
getInterfaceTable(ft);
impl::FluidSCWrapperBase<Client>::setup(ft, name);
ft->fDefineUnitCmd(name, "version", doVersion);
}
static auto& setParams(ParameterSetType& p, bool verbose, World* world, FloatControlsIter& inputs, bool constrain = false)

@ -36,6 +36,7 @@ target_include_directories(
${PLUGIN}
PRIVATE
${LOCAL_INCLUDES}
"${FLUID_VERSION_PATH}"
)
target_include_directories(

Loading…
Cancel
Save