summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2018-04-06 09:32:24 +0100
committerEdoardo Pasca <edo.paskino@gmail.com>2018-04-06 09:32:24 +0100
commitd7d7d844590b62ed8a1119a1d10142548f8c6795 (patch)
tree046ba318a3217d6bc8de569d42b4a1e9d1f19230 /Wrappers
parentc41d90f309e367850dbccf8682ae7008c515c03f (diff)
downloadregularization-d7d7d844590b62ed8a1119a1d10142548f8c6795.tar.gz
regularization-d7d7d844590b62ed8a1119a1d10142548f8c6795.tar.bz2
regularization-d7d7d844590b62ed8a1119a1d10142548f8c6795.tar.xz
regularization-d7d7d844590b62ed8a1119a1d10142548f8c6795.zip
removed findBoost
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/CMakeLists.txt36
-rw-r--r--Wrappers/Python/setup-regularizers.py.in3
2 files changed, 2 insertions, 37 deletions
diff --git a/Wrappers/Python/CMakeLists.txt b/Wrappers/Python/CMakeLists.txt
index 16a2137..eb3bac7 100644
--- a/Wrappers/Python/CMakeLists.txt
+++ b/Wrappers/Python/CMakeLists.txt
@@ -24,15 +24,6 @@ if (PYTHONINTERP_FOUND)
endif()
endif()
-find_package(Boost REQUIRED
- COMPONENTS ${BOOST_PYTHON} ${BOOST_NUMPY})
-
-if (Boost_FOUND)
- message("Boost version " ${Boost_VERSION})
- message("Boost include dir " ${Boost_INCLUDE_DIRS})
- message("Boost library dir " ${Boost_LIBRARY_DIRS})
- message("Boost libraries " ${Boost_LIBRARIES})
-endif()
## Build the regularizers package as a library
message("Creating Regularizers as shared library")
@@ -46,7 +37,7 @@ if(WIN32)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:MSVCRT.lib")
set (EXTRA_LIBRARIES
- ${Boost_LIBRARIES}
+ #${Boost_LIBRARIES}
#"tiff"
)
@@ -55,35 +46,12 @@ if(WIN32)
elseif(UNIX)
set (FLAGS "-fopenmp -O2 -funsigned-char -Wall -Wl,--no-undefined -DCCPiReconstructionIterative_EXPORTS -std=c++0x")
set (EXTRA_LIBRARIES
- ${Boost_LIBRARIES}
+ #${Boost_LIBRARIES}
#"tiff"
"gomp"
)
endif()
-
-if (WIN32)
- list(GET Boost_LIBRARIES 0 place )
- get_filename_component(BOOST_PYTHON_LIB ${place} NAME_WE )
- list(GET Boost_LIBRARIES 1 place )
- get_filename_component(BOOST_NUMPY_LIB ${place} NAME_WE )
-else()
- # on linux the library looks like libboost_numpy3.so:
- # we need to get rid of the lib at the beginning
- list(GET Boost_LIBRARIES 0 place )
- get_filename_component(place2 ${place} NAME_WE )
- string(REGEX REPLACE "^lib(.*)" "\\1" BOOST_PYTHON_LIB "${place2}")
-
- list(GET Boost_LIBRARIES 1 place )
- get_filename_component(place2 ${place} NAME_WE )
- string(REGEX REPLACE "^lib(.*)" "\\1" BOOST_NUMPY_LIB "${place2}")
-endif()
-
-message ("found " ${BOOST_PYTHON_LIB})
-message ("found " ${BOOST_NUMPY_LIB})
-
-
-
# GPU Regularizers
find_package(CUDA)
diff --git a/Wrappers/Python/setup-regularizers.py.in b/Wrappers/Python/setup-regularizers.py.in
index 6e27e08..0811372 100644
--- a/Wrappers/Python/setup-regularizers.py.in
+++ b/Wrappers/Python/setup-regularizers.py.in
@@ -44,9 +44,6 @@ else:
extra_compile_args = ['-fopenmp','-O2', '-funsigned-char', '-Wall', '-std=c++0x']
extra_libraries += [@EXTRA_OMP_LIB@]
-extra_libraries += ["@BOOST_PYTHON_LIB@", "@BOOST_NUMPY_LIB@"]
-
-
setup(
name='ccpi',
description='CCPi Core Imaging Library - Image Regularizers',