diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/astra/CudaFilteredBackProjectionAlgorithm.h | 4 | ||||
-rw-r--r-- | include/astra/CudaProjector2D.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/astra/CudaFilteredBackProjectionAlgorithm.h b/include/astra/CudaFilteredBackProjectionAlgorithm.h index 0c66b19..057843e 100644 --- a/include/astra/CudaFilteredBackProjectionAlgorithm.h +++ b/include/astra/CudaFilteredBackProjectionAlgorithm.h @@ -28,6 +28,8 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>. #ifndef CUDAFILTEREDBACKPROJECTIONALGORITHM2_H #define CUDAFILTEREDBACKPROJECTIONALGORITHM2_H +#ifdef ASTRA_CUDA + #include <astra/Float32ProjectionData2D.h> #include <astra/Float32VolumeData2D.h> #include <astra/ReconstructionAlgorithm2D.h> @@ -94,4 +96,6 @@ inline std::string CCudaFilteredBackProjectionAlgorithm::description() const { r } +#endif + #endif /* CUDAFILTEREDBACKPROJECTIONALGORITHM2_H */ diff --git a/include/astra/CudaProjector2D.h b/include/astra/CudaProjector2D.h index d43de33..d95aa53 100644 --- a/include/astra/CudaProjector2D.h +++ b/include/astra/CudaProjector2D.h @@ -28,6 +28,8 @@ along with the ASTRA Toolbox. If not, see <http://www.gnu.org/licenses/>. #ifndef _INC_ASTRA_CUDAPROJECTOR2D #define _INC_ASTRA_CUDAPROJECTOR2D +#ifdef ASTRA_CUDA + #include "ParallelProjectionGeometry2D.h" #include "Float32Data2D.h" #include "Projector2D.h" @@ -142,5 +144,7 @@ inline std::string CCudaProjector2D::getType() } // namespace astra +#endif + #endif |