From 442958cdabf03015f87e57a5183b9aa8ac815b06 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Mon, 1 Mar 2021 08:52:20 +0000 Subject: 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 Reviewed-by: John Levon --- samples/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'samples') 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) -- cgit v1.1