From: tbaudier Date: Fri, 7 Sep 2018 08:46:33 +0000 (+0200) Subject: Add AffineRegistration library to avoid compilation error X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=clitk.git;a=commitdiff_plain;h=e751b47051ae80ecd388418ae39b388f15e627eb 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 --- 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)