Linking a lib file in cmake

Hi all, am very new to CMake so pardon me if get something wrong.

I have a .dll, .lib, and .h which I want to add to my CMake project and use in cpp code.

Here’s my project structure.
image

I tried adding the lib reference using target_link_libraries, and here’s my CMakeLists.txt

cmake_minimum_required(VERSION 3.14)
set(PROJECT_NAME "mantra_mfs100")
project(${PROJECT_NAME} LANGUAGES CXX)

# This value is used when generating builds using this plugin, so it must
# not be changed
set(PLUGIN_NAME "mantra_mfs100_plugin")

add_library(${PLUGIN_NAME} SHARED
  "mantra_mfs100_plugin.cpp"
)

apply_standard_settings(${PLUGIN_NAME})
set_target_properties(${PLUGIN_NAME} PROPERTIES
  CXX_VISIBILITY_PRESET hidden)
target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
target_include_directories(${PLUGIN_NAME} INTERFACE
  "${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin MFS100Dll.lib)

# List of absolute paths to libraries that should be bundled with the plugin
set(mantra_mfs100_bundled_libraries
  ""
  PARENT_SCOPE
)

But I was only getting the following error

 LINK : fatal error LNK1181: cannot open input file 'MFS100Dll.lib' [C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj]

Also here’s the full build output by flutter

C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example>flutter build windows -v
[  +67 ms] executing: [C:\Work\SDK\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +569 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +1 ms] c860cba910319332564e1e9d470a17074c1f2dfd
[   +1 ms] executing: [C:\Work\SDK\flutter/] git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[  +95 ms] Exit code 0 from: git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[        ] 2.10.4
[   +9 ms] executing: [C:\Work\SDK\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +85 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [C:\Work\SDK\flutter/] git ls-remote --get-url origin
[  +80 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[ +169 ms] executing: [C:\Work\SDK\flutter/] git rev-parse --abbrev-ref HEAD
[  +95 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[ +105 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +67 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[   +2 ms] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +108 ms] Skipping pub get: version match.
[  +19 ms] Found plugin mantra_mfs100 at C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\
[  +70 ms] Found plugin mantra_mfs100 at C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\
[  +37 ms] Generating C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +75 ms]  Building with sound null safety 
[  +18 ms] executing: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[  +62 ms] Exit code 0 from: C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe -format json -products * -utf8 -latest -version 16 -requires
Microsoft.VisualStudio.Workload.NativeDesktop Microsoft.VisualStudio.Component.VC.Tools.x86.x64 Microsoft.VisualStudio.Component.VC.CMake.Project
[   +1 ms] [
             {
               "instanceId": "d4ae72fd",
               "installDate": "2022-03-07T02:37:37Z",
               "installationName": "VisualStudio/17.1.4+32407.343",
               "installationPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community",
               "installationVersion": "17.1.32407.343",
               "productId": "Microsoft.VisualStudio.Product.Community",
               "productPath": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\IDE\\devenv.exe",
               "state": 4294967295,
               "isComplete": true,
               "isLaunchable": true,
               "isPrerelease": false,
               "isRebootRequired": false,
               "displayName": "Visual Studio Community 2022",
               "description": "Powerful IDE, free for students, open-source contributors, and individuals",
               "channelId": "VisualStudio.17.Release",
               "channelUri": "https://aka.ms/vs/17/release/channel",
               "enginePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\resources\\app\\ServiceHub\\Services\\Microsoft.VisualStudio.Setup.Service",
               "installedChannelUri": "https://aka.ms/vs/17/release/channel",
               "releaseNotes": "https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-v17.1#17.1.4",
               "thirdPartyNotices": "https://go.microsoft.com/fwlink/?LinkId=661288",
               "updateDate": "2022-04-13T03:49:51.4615637Z",
               "catalog": {
                 "buildBranch": "d17.1",
                 "buildVersion": "17.1.32407.343",
                 "id": "VisualStudio/17.1.4+32407.343",
                 "localBuild": "build-lab",
                 "manifestName": "VisualStudio",
                 "manifestType": "installer",
                 "productDisplayVersion": "17.1.4",
                 "productLine": "Dev17",
                 "productLineVersion": "2022",
                 "productMilestone": "RTW",
                 "productMilestoneIsPreRelease": "False",
                 "productName": "Visual Studio",
                 "productPatchVersion": "4",
                 "productPreReleaseMilestoneSuffix": "1.0",
                 "productSemanticVersion": "17.1.4+32407.343",
                 "requiredEngineVersion": "3.1.2202.21079"
               },
               "properties": {
                 "campaignId": "2028",
                 "channelManifestId": "VisualStudio.17.Release/17.1.4+32407.343",
                 "nickname": "",
                 "setupEngineFilePath": "C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\setup.exe"
               }
             }
           ]
[   +4 ms] Building Windows application...
[  +21 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -S C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\windows -B build\windows -G Visual Studio 17 2022
[  +83 ms] -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
[  +35 ms] -- Configuring done
[ +307 ms] -- Generating done
[  +19 ms] -- Build files have been written to: C:/Work/Freelancing/Fingerprint Scanner/mantra_mfs100/example/build/windows
[  +10 ms] executing: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe --build build\windows --config Release
--target INSTALL --verbose
[ +218 ms] Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
[        ] Copyright (C) Microsoft Corporation. All rights reserved.
[  +81 ms] Build started 4/22/2022 1:22:51 AM.
[ +245 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\INSTALL.vcxproj" on node 1 (default targets).
[   +1 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\INSTALL.vcxproj" (1) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
[        ] InitializeBuildStatus:
[        ]   Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[  +23 ms] CustomBuild:
[   +1 ms]   All outputs are up-to-date.
[  +27 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
[        ] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ZERO_CHECK.vcxproj" (default targets).
[  +92 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\INSTALL.vcxproj" (1) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
[   +1 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (3) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) on node 1 (default targets).
[        ] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\flutter_wrapper_app.vcxproj" (4) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\flutter\flutter_assemble.vcxproj" (5) on node 1 (default targets).
[        ] InitializeBuildStatus:
[        ]   Creating "x64\Release\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +2 ms] CustomBuild:
[        ]   "The build of 'C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\CMakeFiles\2cbde058ca599ce1563debcf901399ef\flutter_assemble.rule' depends on
'C:\WORK\FREELANCING\FINGERPRINT SCANNER\MANTRA_MFS100\EXAMPLE\WINDOWS\FLUTTER\EPHEMERAL\FLUTTER_WINDOWS.DLL' which is produced by the build of 'C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\CMakeFiles\4f9e9493a66eb6da66723956c1d1e1c0\flutter_windows.dll.rule'. The items cannot be built in parallel."
[ +131 ms]   Generating C:/Work/Freelancing/Fingerprint Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_windows.dll, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_export.h, C:/Work/Freelancing/Fingerprint Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_windows.h,
C:/Work/Freelancing/Fingerprint Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_messenger.h, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_plugin_registrar.h, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/flutter_texture_registrar.h, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/cpp_client_wrapper/core_implementations.cc, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/cpp_client_wrapper/standard_codec.cc, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/cpp_client_wrapper/plugin_registrar.cc, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/cpp_client_wrapper/flutter_engine.cc, C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/windows/flutter/ephemeral/cpp_client_wrapper/flutter_view_controller.cc, _phony_
[+1749 ms]   [  +65 ms] executing: [C:\Work\SDK\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +605 ms]   [ +626 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ]   [        ] c860cba910319332564e1e9d470a17074c1f2dfd
[        ]   [        ] executing: [C:\Work\SDK\flutter/] git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[ +108 ms]   [ +108 ms] Exit code 0 from: git tag --points-at c860cba910319332564e1e9d470a17074c1f2dfd
[        ]   [        ] 2.10.4
[   +7 ms]   [   +8 ms] executing: [C:\Work\SDK\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +94 ms]   [  +94 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ]   [        ] origin/stable
[        ]   [        ] executing: [C:\Work\SDK\flutter/] git ls-remote --get-url origin
[  +91 ms]   [  +92 ms] Exit code 0 from: git ls-remote --get-url origin
[        ]   [        ] https://github.com/flutter/flutter.git
[  +63 ms]   [  +63 ms] executing: [C:\Work\SDK\flutter/] git rev-parse --abbrev-ref HEAD
[ +102 ms]   [ +102 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[   +1 ms]   [        ] stable
[  +96 ms]   [  +97 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +3 ms]   [   +5 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +2 ms]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +134 ms]   [ +139 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[   +1 ms]   [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ]   [   +3 ms] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ]   [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[ +104 ms]   [ +109 ms] Initializing file store
[  +18 ms]   [  +18 ms] Done initializing file store
[  +71 ms]   [  +72 ms] Skipping target: gen_localizations
[  +13 ms]   [  +13 ms] Skipping target: gen_dart_plugin_registrant
[+2490 ms]   [+2490 ms] Skipping target: unpack_windows
[ +425 ms]   [ +425 ms] Skipping target: kernel_snapshot
[  +22 ms]   [  +22 ms] Skipping target: aot_elf_release
[  +20 ms]   [  +20 ms] Skipping target: windows_aot_bundle
[  +40 ms]   [  +40 ms] Skipping target: release_bundle_windows_assets
[        ]   [        ] Persisting file store
[  +10 ms]   [  +10 ms] Done persisting file store
[   +4 ms]   [   +4 ms] build succeeded.
[   +9 ms]   [   +9 ms] "flutter assemble" took 3,412ms.
[ +257 ms]   [ +257 ms] ensureAnalyticsSent: 253ms
[        ]   [        ] Running shutdown hooks
[        ]   [        ] Shutdown hooks complete
[        ]   [        ] exiting with code 0
[  +69 ms] FinalizeBuildStatus:
[        ]   Deleting file "x64\Release\flutter_assemble\flutter_assemble.tlog\unsuccessfulbuild".
[        ]   Touching "x64\Release\flutter_assemble\flutter_assemble.tlog\flutter_assemble.lastbuildstate".
[        ] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\flutter_assemble.vcxproj" (default targets).
[   +5 ms] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_app.dir\Release\flutter_.12B5EEB2.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[   +1 ms] CustomBuild:
[        ]   All outputs are up-to-date.
[  +50 ms] ClCompile:
[        ]   All outputs are up-to-date.
[  +25 ms] Lib:
[        ]   All outputs are up-to-date.
[        ]   flutter_wrapper_app.vcxproj -> C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\Release\flutter_wrapper_app.lib
[  +10 ms] FinalizeBuildStatus:
[   +1 ms]   Deleting file "flutter_wrapper_app.dir\Release\flutter_.12B5EEB2.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_wrapper_app.dir\Release\flutter_.12B5EEB2.tlog\flutter_wrapper_app.lastbuildstate".
[        ] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\flutter_wrapper_app.vcxproj" (default targets).
[  +24 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (3) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (6) on node 1 (default targets).
[   +1 ms] InitializeBuildStatus:
[        ]   Creating "flutter_wrapper_plugin.dir\Release\flutter_.A0737316.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
[        ] CustomBuild:
[        ]   All outputs are up-to-date.
[  +14 ms] ClCompile:
[   +1 ms]   All outputs are up-to-date.
[   +3 ms] Lib:
[        ]   All outputs are up-to-date.
[        ]   flutter_wrapper_plugin.vcxproj -> C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\Release\flutter_wrapper_plugin.lib
[   +5 ms] FinalizeBuildStatus:
[        ]   Deleting file "flutter_wrapper_plugin.dir\Release\flutter_.A0737316.tlog\unsuccessfulbuild".
[        ]   Touching "flutter_wrapper_plugin.dir\Release\flutter_.A0737316.tlog\flutter_wrapper_plugin.lastbuildstate".
[        ] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\flutter\flutter_wrapper_plugin.vcxproj" (default targets).
[  +56 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (3) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\runner\mantra_mfs100_example.vcxproj" (7) on node 1 (default targets).
[   +1 ms] Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\runner\mantra_mfs100_example.vcxproj" (7) is building "C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj" (8) on node 1 (default targets).
[   +1 ms] InitializeBuildStatus:
[        ]   Touching "mantra_mfs100_plugin.dir\Release\mantra_m.FE72B4D6.tlog\unsuccessfulbuild".
[        ] CustomBuild:
[        ]   All outputs are up-to-date.
[   +6 ms] ClCompile:
[        ]   All outputs are up-to-date.
[  +36 ms] Link:
[        ]   C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\Release\mantra_mfs100_plugin.dll" /INCREMENTAL:NO /NOLOGO ..\..\flutter\Release\flutter_wrapper_plugin.lib
MFS100Dll.lib "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\windows\flutter\ephemeral\flutter_windows.dll.lib" kernel32.lib user32.lib gdi32.lib winspool.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"C:/Work/Freelancing/Fingerprint
Scanner/mantra_mfs100/example/build/windows/plugins/mantra_mfs100/Release/mantra_mfs100_plugin.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT
/IMPLIB:"C:/Work/Freelancing/Fingerprint Scanner/mantra_mfs100/example/build/windows/plugins/mantra_mfs100/Release/mantra_mfs100_plugin.lib" /MACHINE:X64  /machine:x64 /DLL
mantra_mfs100_plugin.dir\Release\mantra_mfs100_plugin.obj
[ +133 ms] LINK : fatal error LNK1181: cannot open input file 'MFS100Dll.lib' [C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj]
[  +12 ms] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj" (default targets) --
FAILED.
[   +1 ms] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\runner\mantra_mfs100_example.vcxproj" (default targets) -- FAILED.
[        ] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (default targets) -- FAILED.
[   +2 ms] Done Building Project "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\INSTALL.vcxproj" (default targets) -- FAILED.
[        ] Build FAILED.
[        ] "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\INSTALL.vcxproj" (default target) (1) ->
[        ] "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\ALL_BUILD.vcxproj" (default target) (3) ->
[        ] "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\runner\mantra_mfs100_example.vcxproj" (default target) (7) ->
[        ] "C:\Work\Freelancing\Fingerprint Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj" (default target) (8) ->
[        ] (Link target) ->
[        ]   LINK : fatal error LNK1181: cannot open input file 'MFS100Dll.lib' [C:\Work\Freelancing\Fingerprint
Scanner\mantra_mfs100\example\build\windows\plugins\mantra_mfs100\mantra_mfs100_plugin.vcxproj]
[   +1 ms]     0 Warning(s)
[        ]     1 Error(s)
[        ] Time Elapsed 00:00:07.58
[  +21 ms] Building Windows application... (completed in 8.4s)
[   +2 ms] "flutter windows" took 8,920ms.
[   +5 ms] Build process failed.
[   +1 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
           #1      _runBuild (package:flutter_tools/src/windows/build_windows.dart:314:5)
           <asynchronous suspension>
           #2      buildWindows (package:flutter_tools/src/windows/build_windows.dart:80:5)
           <asynchronous suspension>
           #3      BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:57:5)
           <asynchronous suspension>
           #4      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1161:27)
           <asynchronous suspension>
           #5      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #6      CommandRunner.runCommand (package:args/command_runner.dart:209:13)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
           <asynchronous suspension>
           #8      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #9      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
           <asynchronous suspension>
           #10     run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
           <asynchronous suspension>
           #11     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
           <asynchronous suspension>
           #12     main (package:flutter_tools/executable.dart:94:3)
           <asynchronous suspension>
           
           
[  +99 ms] ensureAnalyticsSent: 96ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 1

You’ll probably want a full path to that .lib file, not just a filename.

You should import the MFS100Dll.lib library using

add_library(libname STATIC IMPORTED GLOBAL)
set_property(TARGET cryptocpp APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
set_target_properties(cryptocpp PROPERTIES
        IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX"
        IMPORTED_LOCATION_DEBUG "C:/path/to//lib/MFS100Dll.lib")

Then use the library to create your executable or library. The DLLs need to be in the same folder as the executable in order to run the application. Make sure to add a custom command to do this