Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Install the python bindings
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 24 Jan 2022 14:14:32 +0000 (15:14 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 24 Jan 2022 14:14:32 +0000 (15:14 +0100)
CMakeLists.txt

index 6943264..51e5241 100644 (file)
@@ -839,6 +839,11 @@ if(enable_python)
     add_dependencies(tests python-bindings)
     set_property(TARGET python-bindings
                  APPEND PROPERTY INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}")
+                
+    install(TARGETS python-bindings 
+            RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
+           LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
+           ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
   else()
     message(FATAL_ERROR "Please install pybind11-dev to build the Python bindings (or disable that option).")
   endif()