diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7c6ccc8..95c1564 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 3.12) set(CMAKE_POSITION_INDEPENDENT_CODE ON) +SET(PYTHONLIB "po" CACHE STRING "Location of the python site-package directory") + project (cobitools3) set(CMAKE_BUILD_TYPE Release) @@ -58,4 +60,7 @@ add_library(cobitools3 SHARED obierrno.c libecoPCR/ecoMalloc.c libecoPCR/ecoError.c obitypes.c - array_indexer.c) \ No newline at end of file + array_indexer.c) + +install(TARGETS cobitools3 DESTINATION ${PYTHONLIB}) + \ No newline at end of file