Skip to content

Commit

Permalink
Merge branch 'RTK-ExternalModule' of github.com:SimonRit/RTK into RTK…
Browse files Browse the repository at this point in the history
…-ExternalModule
  • Loading branch information
Simon Rit committed Apr 13, 2018
2 parents 6032afd + f878f20 commit abcaddc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ foreach(p ${CMAKE_POLICIES})
endif()
endforeach()

#=========================================================
# Help function to debug CMake
macro (DD in)
message(${in}=[${${in}}])
endmacro()
#=========================================================

project(RTK)

## RTK Version
Expand Down
1 change: 1 addition & 0 deletions include/rtkGeneralPurposeFunctions.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ GetSortingPermutation(std::vector<TVectorElement> input)
return result;
}

inline
static std::vector<double>
ReadSignalFile(std::string filename)
{
Expand Down
12 changes: 12 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@ set(RTK_SRCS
srtkThreeDCircularProjectionGeometryXMLFileWriter.cxx
)

#=========================================================
# This is a fix for when using Module_ITKVtkGlue
# (https://gitlab.kitware.com/vtk/vtk/issues/15895)
get_directory_property(defCom COMPILE_DEFINITIONS)
set(defComSansVTK)
foreach(def ${defCom})
if(NOT def MATCHES "^vtk.*")
list(APPEND defComSansVTK ${def})
endif()
endforeach()
set_directory_properties(PROPERTIES COMPILE_DEFINITIONS "${defComSansVTK}")

#=========================================================
# CUDA library
#=========================================================
Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ rtk_add_cuda_test(rtkFourDRoosterCudaTest rtkfourdroostertest.cxx)
rtk_add_cuda_test(rtkADMMWaveletsCudaTest rtkadmmwaveletstest.cxx)
rtk_add_cuda_test(rtkADMMTotalVariationCudaTest rtkadmmtotalvariationtest.cxx
DATA{Input/Phases/phases.txt}
Data{Input/Phases/phases_3projs.txt})
DATA{Input/Phases/phases_3projs.txt})
rtk_add_cuda_test(rtkRegularizedConjugateGradientCudaTest rtkregularizedconjugategradienttest.cxx)
rtk_add_cuda_test(rtkCudaRaycastAdjointOperatorsCudaTest rtkcudaraycastadjointoperatorstest.cxx)
rtk_add_cuda_test(rtkCyclicDeformationCudaTest rtkcyclicdeformationtest.cxx)
Expand Down
3 changes: 3 additions & 0 deletions utilities/lp_solve/lp_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@
#define LE ROWTYPE_LE
#define GE ROWTYPE_GE
#define EQ ROWTYPE_EQ
#ifdef OF
# undef OF
#endif
#define OF ROWTYPE_OF

/* MIP constraint classes */
Expand Down

0 comments on commit abcaddc

Please sign in to comment.