File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ if(OPENDAQ_FB_EXAMPLE_ENABLE_APP)
3232endif ()
3333
3434add_subdirectory (external)
35+ find_package (openDAQ)
36+ add_compile_definitions (MODULE_PATH ="${OPENDAQ_MODULES_DIR} " )
37+
3538add_subdirectory (example_module)
3639
3740if (OPENDAQ_FB_EXAMPLE_ENABLE_APP)
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ using namespace daq;
99
1010int main (int /* argc*/ , const char * /* argv*/ [])
1111{
12- const auto instance = Instance ();
12+ const auto instance = InstanceBuilder (). addModulePath (MODULE_PATH). build ();
1313 auto referenceDevice = instance.addDevice (" daqref://device0" );
1414 auto renderer = instance.addFunctionBlock (" RefFBModuleRenderer" );
1515 auto exampleModule = instance.addFunctionBlock (" ExampleScalingModule" );
You can’t perform that action at this time.
0 commit comments