Skip to content

Commit 467880e

Browse files
committed
Update application with module path
1 parent c82fd26 commit 467880e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ if(OPENDAQ_FB_EXAMPLE_ENABLE_APP)
3232
endif()
3333

3434
add_subdirectory(external)
35+
find_package(openDAQ)
36+
add_compile_definitions(MODULE_PATH="${OPENDAQ_MODULES_DIR}")
37+
3538
add_subdirectory(example_module)
3639

3740
if(OPENDAQ_FB_EXAMPLE_ENABLE_APP)

example_application/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using namespace daq;
99

1010
int 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");

0 commit comments

Comments
 (0)