Commit 1c799268 authored by Robert Manzke's avatar Robert Manzke

library doesn't work due to linker

parent 2b77ed24
......@@ -4,10 +4,11 @@ project(CTAG-Plug VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CTest)
enable_testing()
add_subdirectory(ctag)
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ctag)
add_executable(CTAG-Plug main.cpp ctagAudioPluginAM.cpp ctagAudioPluginFM.cpp)
add_executable(CTAG-Plug main.cpp)
target_link_libraries(CTAG-Plug ctag)
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
......
add_library(ctag ctagAudioPluginAM.cpp ctagAudioPluginFM.cpp)
\ No newline at end of file
......@@ -5,11 +5,9 @@
using factory::Registry;
int main(int argc, char** argv) {
std::unique_ptr<ctagAudioPlugin> plugin = Registry<ctagAudioPlugin>::New(argv[1]);
std::unique_ptr<ctagAudioPlugin> plugin = Registry<ctagAudioPlugin>::New("ctagAudioPluginAM");
assert(plugin);
float in[32], out[32];
plugin->Process(in, out); // will draw a rectangle!
plugin = Registry<ctagAudioPlugin>::New(argv[2]);
plugin->Process(in, out);
plugin->Process(in, out);
plugin = nullptr;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment