From 52b8008bdca3a4a4ac60a3f2107de7cfd808252a Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 29 Mar 2019 15:21:30 +0100 Subject: [PATCH] Add the location of install --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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