diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2018-08-06 21:38:06 +0100 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2018-08-06 21:38:06 +0100 |
commit | 4fa0c5bcd9e362cbdf2211edc85f30ec1dafee3b (patch) | |
tree | 2bcc0ec14d5773be16faa7f6bffda37b76120bed /Wrappers/Python | |
parent | 89d9b706aa5f6dfe3724e6bdb628f5c95e7425f6 (diff) | |
download | regularization-4fa0c5bcd9e362cbdf2211edc85f30ec1dafee3b.tar.gz regularization-4fa0c5bcd9e362cbdf2211edc85f30ec1dafee3b.tar.bz2 regularization-4fa0c5bcd9e362cbdf2211edc85f30ec1dafee3b.tar.xz regularization-4fa0c5bcd9e362cbdf2211edc85f30ec1dafee3b.zip |
add destination for wrapper
Diffstat (limited to 'Wrappers/Python')
-rw-r--r-- | Wrappers/Python/CMakeLists.txt | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Wrappers/Python/CMakeLists.txt b/Wrappers/Python/CMakeLists.txt index 52f3f39..2ab8f86 100644 --- a/Wrappers/Python/CMakeLists.txt +++ b/Wrappers/Python/CMakeLists.txt @@ -16,7 +16,16 @@ find_package(PythonInterp REQUIRED) if (PYTHONINTERP_FOUND) message ("Current Python " ${PYTHON_VERSION_STRING} " found " ${PYTHON_EXECUTABLE}) endif() - +if (CONDA_BUILD) +else() +set(PYTHON_DEST_DIR "" CACHE PATH "Directory of the Matlab wrappers") + if (PYTHON_DEST_DIR) + set(PYTHON_DEST "${PYTHON_DEST_DIR}") + else() + set(PYTHON_DEST "${CMAKE_INSTALL_PREFIX}/python") + endif() + message(STATUS "Python wrappers will be installed in " ${PYTHON_DEST}) +endif() ## Build the regularisers package as a library message("Creating Regularisers as shared library") @@ -46,7 +55,7 @@ if (BUILD_CUDA) if (CUDA_FOUND) message("CUDA FOUND") set (SETUP_GPU_WRAPPERS "extra_libraries += ['cilregcuda']\n\ - setup( \n\ +setup( \n\ name='ccpi', \n\ description='CCPi Core Imaging Library - Image regularisers GPU',\n\ version=cil_version,\n\ |