X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FCMakeLists.txt;h=8ecd3ccb0db23a27a7b7185e7d160fd53650fc1e;hb=8589b8992890539b3046a4f3d09aa319ba8d5351;hp=ec1529e310227620d5390e5aba827a9690530242;hpb=4d95e8a4680c1f0e635da4a36b336d316f16b8ba;p=clitk.git diff --git a/vv/CMakeLists.txt b/vv/CMakeLists.txt index ec1529e..8ecd3cc 100644 --- a/vv/CMakeLists.txt +++ b/vv/CMakeLists.txt @@ -19,7 +19,7 @@ SET(vv_TOOLS vvToolResample # vvToolExtractPatient # vvToolExtractLung -#vvToolStructureSetManager + vvToolStructureSetManager vvToolMIP vvToolConvert ## with dummy vvToolConvert.ui @@ -93,7 +93,9 @@ SET(vv_SRCS vvThreadedFilter.cxx vvImageContour.cxx vvBinaryImageOverlayActor.cxx - #vvStructureSetActor.cxx + vvStructureSetActor.cxx + vvSaveState.cxx + vvReadState.cxx vvROIActor.cxx vvBlendImageActor.cxx vvToolManager.cxx @@ -112,7 +114,7 @@ QT4_WRAP_CPP(vv_SRCS vvQDicomSeriesSelector.h vvSlicerManager.h vvThreadedFilter.h - #vvStructureSetActor.h + vvStructureSetActor.h vvROIActor.h vvToolCreatorBase.h ) @@ -128,12 +130,14 @@ QT4_ADD_RESOURCES(vv_SRCS vvIcons.qrc) # Add the autotools in the header vvToolsList.h for initialization of the dummy # variables in vv.cxx for the tools contained in vvLib -file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h) -foreach(tool ${vv_TOOLS}) +if(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt IS_NEWER_THAN ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h) + file(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h) + foreach(tool ${vv_TOOLS}) FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h "#include \"${tool}.h\"\n") FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h "extern const vvToolCreator<${tool}> *dummy${tool};\n") FILE(APPEND ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h "const vvToolCreator<${tool}> *dummy${tool}2 = dummy${tool};\n\n") -endforeach(tool) + endforeach(tool) +endif(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt IS_NEWER_THAN ${CMAKE_CURRENT_BINARY_DIR}/vvToolsList.h) # Add the autotools and the common files ui foreach(tool ${vv_TOOLS} ${vv_COMMON_WITH_UI})