From e751b47051ae80ecd388418ae39b388f15e627eb Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 7 Sep 2018 10:46:33 +0200 Subject: [PATCH] Add AffineRegistration library to avoid compilation error With a lot of cores, clitkElastixTransformToMatrix (that need clitkAffineTransform) can be compiled before clitkAffineTransform And the gengetopt of clitkAffineTransform is not compiled leading to an error --- tools/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index e616c35..468bc36 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -147,13 +147,14 @@ if(CLITK_BUILD_TOOLS) set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkInvertVF) WRAP_GGO(clitkAffineTransform_GGO_C clitkAffineTransform.ggo) + add_library(clitkAffineTransformLib clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C}) add_executable(clitkAffineTransform clitkAffineTransform.cxx ${clitkAffineTransform_GGO_C}) target_link_libraries(clitkAffineTransform clitkCommon ) set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkAffineTransform) WRAP_GGO(clitkElastixTransformToMatrix_GGO_C clitkElastixTransformToMatrix.ggo) add_executable(clitkElastixTransformToMatrix clitkElastixTransformToMatrix.cxx ${clitkElastixTransformToMatrix_GGO_C}) - target_link_libraries(clitkElastixTransformToMatrix clitkCommon ) + target_link_libraries(clitkElastixTransformToMatrix clitkAffineTransformLib clitkCommon ) set(TOOLS_INSTALL ${TOOLS_INSTALL} clitkElastixTransformToMatrix) WRAP_GGO(clitkMatrixToElastixTransform_GGO_C clitkMatrixToElastixTransform.ggo) -- 2.47.1