Skip to content

Commit

Permalink
[CMake] use NiftyPET 2
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisThielemans committed Nov 25, 2023
1 parent b5c21c3 commit 23ba669
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 88 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ endif()

if(NOT DISABLE_NiftyPET_PROJECTOR)
if (CUDAToolkit_FOUND)
find_package(NiftyPET)
if (NiftyPET_FOUND)
find_package(NiftyPETnipet COMPONENTS mmr_auxe mmr_lmproc petprj REQUIRED)
if (NiftyPETnipet_FOUND)
set(STIR_WITH_NiftyPET_PROJECTOR ON)
endif()
endif()
Expand Down
82 changes: 0 additions & 82 deletions src/cmake/FindNiftyPET.cmake

This file was deleted.

5 changes: 1 addition & 4 deletions src/recon_buildblock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,7 @@ endif()
target_link_libraries(recon_buildblock PUBLIC modelling_buildblock display numerics_buildblock listmode_buildblock data_buildblock buildblock spatial_transformation_buildblock )

if (STIR_WITH_NiftyPET_PROJECTOR)
target_link_libraries(recon_buildblock PUBLIC NiftyPET::petprj)
target_link_libraries(recon_buildblock PUBLIC NiftyPET::mmr_auxe)
target_link_libraries(recon_buildblock PUBLIC NiftyPET::mmr_lmproc)
target_link_libraries(recon_buildblock PUBLIC CUDA::cudart)
target_link_libraries(recon_buildblock PRIVATE NiftyPET::mmr_auxe NiftyPET::mmr_lmproc NiftyPET::petprj)
endif()

if (STIR_WITH_Parallelproj_PROJECTOR)
Expand Down

0 comments on commit 23ba669

Please sign in to comment.