diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-03-01 08:52:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 08:52:20 +0000 |
commit | 442958cdabf03015f87e57a5183b9aa8ac815b06 (patch) | |
tree | 254e4b179b85b92b0e49f6461d7c8703f89fcc76 /samples | |
parent | 064071b5c73d96d626760d0f48aec234eb5da2d6 (diff) | |
download | libvfio-user-442958cdabf03015f87e57a5183b9aa8ac815b06.zip libvfio-user-442958cdabf03015f87e57a5183b9aa8ac815b06.tar.gz libvfio-user-442958cdabf03015f87e57a5183b9aa8ac815b06.tar.bz2 |
use shared libvfio-user object for gpio sample (#372)
This makes it easier to test that libvfio-user is correctly installed.
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index 7fc4dd1..13674ad 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -38,8 +38,9 @@ target_link_libraries(server vfio-user-static ssl crypto) add_executable(null null.c) target_link_libraries(null vfio-user-static pthread) +LINK_DIRECTORIES(${CMAKE_BINARY_DIR}/lib) add_executable(gpio-pci-idio-16 gpio-pci-idio-16.c) -target_link_libraries(gpio-pci-idio-16 vfio-user-static) +target_link_libraries(gpio-pci-idio-16 vfio-user) add_executable(lspci lspci.c) target_link_libraries(lspci vfio-user-static) |