aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2020-12-08 10:34:29 +0000
committerGitHub <noreply@github.com>2020-12-08 10:34:29 +0000
commit620b62b4b30bf02e6cadee5c8586b06e3c96506e (patch)
treed83a4db8bf9b2ac6fd043680c424708796e67dbc /samples
parent5ebfe0be226014b70a4ccf1f5d46dacbb013c91a (diff)
downloadlibvfio-user-620b62b4b30bf02e6cadee5c8586b06e3c96506e.zip
libvfio-user-620b62b4b30bf02e6cadee5c8586b06e3c96506e.tar.gz
libvfio-user-620b62b4b30bf02e6cadee5c8586b06e3c96506e.tar.bz2
build a static libvfio-user (#173)
Note that we intentionally don't install it: this is really for use when building as a sub-module. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'samples')
-rw-r--r--samples/CMakeLists.txt12
1 files changed, 6 insertions, 6 deletions
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt
index 6f1173b..ab41fc3 100644
--- a/samples/CMakeLists.txt
+++ b/samples/CMakeLists.txt
@@ -28,18 +28,18 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-add_executable(server server.c)
-target_link_libraries(server vfio-user ssl crypto)
-
add_executable(client client.c
../lib/tran_sock.c ../lib/migration.c)
target_link_libraries(client json-c)
+add_executable(server server.c)
+target_link_libraries(server vfio-user-static ssl crypto)
+
add_executable(null null.c)
-target_link_libraries(null vfio-user pthread)
+target_link_libraries(null vfio-user-static pthread)
add_executable(gpio-pci-idio-16 gpio-pci-idio-16.c)
-target_link_libraries(gpio-pci-idio-16 vfio-user)
+target_link_libraries(gpio-pci-idio-16 vfio-user-static)
add_executable(lspci lspci.c)
-target_link_libraries(lspci vfio-user)
+target_link_libraries(lspci vfio-user-static)