Blob Blame History Raw
From 4ef75197c331c3336d19bc862f4882f4e0ed1afb Mon Sep 17 00:00:00 2001
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
Date: Tue, 20 Apr 2021 18:30:26 +0100
Subject: [PATCH 5/7] Install python shared object

---
 binds/python/CMakeLists.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/binds/python/CMakeLists.txt b/binds/python/CMakeLists.txt
index cab467e..13331c5 100644
--- a/binds/python/CMakeLists.txt
+++ b/binds/python/CMakeLists.txt
@@ -16,3 +16,10 @@ target_include_directories(_morphio
 target_link_libraries(_morphio
     PRIVATE
     morphio_static)
+
+find_package (Python3)
+
+install(
+  TARGETS _morphio
+  LIBRARY DESTINATION ${Python3_SITEARCH}/morphio/
+)
-- 
2.35.1