60 lines
1.2 KiB
CMake
60 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
SET(LIB_NAME itkReg23DRT)
|
|
|
|
add_subdirectory(autoreg)
|
|
|
|
find_package(ITK REQUIRED)
|
|
include(${ITK_USE_FILE})
|
|
INCLUDE_DIRECTORIES(${ITK_INCLUDE_DIRS})
|
|
|
|
find_package(VTK REQUIRED)
|
|
INCLUDE_DIRECTORIES(${VTK_INCLUDE_DIRS})
|
|
|
|
FIND_PACKAGE(GDCM REQUIRED)
|
|
INCLUDE_DIRECTORIES(${GDCM_INCLUDE_DIRS})
|
|
|
|
SET(SRCS
|
|
itkImageProcessor.cpp
|
|
itkImageProcessorHelpers.cpp
|
|
vtkContourTopogramProjectionFilter.cxx
|
|
DRTMetaInformation.cpp
|
|
itkReg23.cpp
|
|
itkReg23MetaInformation.cpp
|
|
)
|
|
|
|
SET(HDR
|
|
itkImageProcessor.h
|
|
itkImageProcessorHelpers.h
|
|
itkQtIterationUpdate.h
|
|
itkgSiddonJacobsRayCastInterpolateImageFunction.h
|
|
itkgSiddonJacobsRayCastInterpolateImageFunction.hxx
|
|
vtkContourTopogramProjectionFilter.h
|
|
DRTMetaInformation.h
|
|
itkReg23.h
|
|
itkReg23MetaInformation.h
|
|
)
|
|
|
|
ADD_LIBRARY(${LIB_NAME} ${SRCS} ${HDR})
|
|
|
|
SET(LINK_LIBS
|
|
${LIB_NAME}
|
|
${VTK_LIBRARIES}
|
|
${ITK_LIBRARIES}
|
|
gdcmMSFF
|
|
autoreg
|
|
)
|
|
|
|
TARGET_LINK_LIBRARIES(
|
|
${LINK_LIBS}
|
|
)
|
|
|
|
|
|
target_include_directories (${LIB_NAME}
|
|
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
|
|
set(EXTRA_LIBS ${EXTRA_LIBS} itkDTRrecon)
|
|
set(EXTRA_LIBS ${EXTRA_LIBS} PARENT_SCOPE)
|