Hi Nil,
spare the last step and do it already in the first step. Together with a few other little non-essential corrections like deactivating testing once instead of twice and relying on MITK Qt auto-detection since you installed Qt in its default location, your first CMake call (from anywhere) is then: cmake -S C:/imeka/mitk -B C:/Imeka/mitk_build_5.12 -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE:STRING=Release -D CMAKE_CONFIGURATION_TYPES:STRING="Debug;Release" -D BUILD_TESTING:BOOL=OFF -D MITK_EXTENSION_DIRS:STRING="C:/imeka/mibrain" You could even spare most of the parameters and even the second call to CMake to configure the actual MITK-build when you add a "CMake/BuildConfigurations/mibrain.cmake" file to C:/imeka/mibrain/ where you transfer all your settings into (examples are in the same path in MITK). Then, all you would need to do is: cmake -S C:/imeka/mitk -B C:/Imeka/mitk_build_5.12 -G "Visual Studio 16 2019" -D MITK_EXTENSION_DIRS:STRING="C:/imeka/mibrain" -D MITK_BUILD_CONFIGURATION:STRING="imeka" That said, in your example, I cannot see why there should be a complete rebuild. In the last step, you do an MITK-superbuild after you did an MITK-build. Since some external projects are based on Git repositories instead of tarball downloads, at least these projects will generate build output again because of CMake-reasons but that should be more or less "Build project A, Update project A, (Yada yada is up-to-date) * n". And it should be done in a few seconds. Best, Stefan ________________________________ Von: Nil Goyette <nil.goye...@imeka.ca> Gesendet: Dienstag, 11. Mai 2021 17:45 An: Dinkelacker, Stefan Cc: mitk-users@lists.sourceforge.net Betreff: Re: [mitk-users] PluginGenerator and ProjectTemplate Hi Stefan, Sorry for the late reply, I'm not working on this project often. I didn't record a screencast but I took note of what I did. Maybe you will be able to spot what I did wrong. # Install Qt 5.12.10 (QtScript, QtWebEngine, OpenSSL 1.1) # Install CMake 3.19.7 # Create an empty extension project mkdir C:\imeka cd C:\imeka mkdir C:\imeka\mibrain mkdir C:\imeka\mibrain\Modules Add a ModuleList.cmake file with an empty MITK_MODULES list mkdir C:\imeka\mibrain\Plugins Add a PluginList.cmake file with an empty MITK_PLUGINS list # Get MITK git clone https://phabricator.mitk.org/source/mitk.git cd mitk git checkout v2021.02 # Build MITK cd .. mkdir mitk_build_5.12 cd C:/Imeka/mitk_build_5.12 cmake -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_CONFIGURATION_TYPES:STRING="Debug;Release" -DBUILD_TESTING:BOOL=OFF -DQt5_DIR:PATH=C:/Qt/5.12.10/msvc2017_64/lib/cmake/Qt5 -DBUILD_TESTING:BOOL=0 C:/Imeka/mitk/ Open the solution in Visual Studio and Build. Wait. Visual Studio tells me that everything has succeeded, nothing has failed. ========== Génération : 20 a réussi, 0 a échoué, 0 à jour, 2 a été ignoré ========== At that point, I can open the Workbench - About, and see ITK 4.13.3, VTK 9.0.1, Qt 5.12.10 # Add 2 plugins that we need (skipping this part still lead to a full MITK recompilation) cd MITK-build cmake -DMITK_BUILD_org.mitk.gui.qt.moviemaker:BOOL=ON -DMITK_BUILD_org.mitk.gui.qt.segmentation:BOOL=ON C:/Imeka/mitk/ Open the solution in Visual Studio and Build. Wait. Visual Studio tells me that everything has succeeded, nothing has failed. ========== Génération : 18 a réussi, 0 a échoué, 2 à jour, 0 a été ignoré ========== I can still open the Workbench and see the About dialog. And I see the 2 added plugins. A rebuild (just for testing) in Visual Studio is fast, as expected, because it's doing nothing. # Add our own projet (MITK extension) cd .. cmake -DMITK_EXTENSION_DIRS:PATH="C:/Imeka/mibrain" C:/Imeka/mitk/ Open the solution in Visual Studio and Build. Wait. Visual Studio tells me that everything has succeeded, nothing has failed. But it's a complete MITK build again. So, do you see anything obvious? During this time of social distancing, we offer free webinars on subjects that matter.<https://www.imeka.ca/webinars/> [https://www.imeka.ca/app/uploads/2021/03/logo-imeka-nom-10years-dark-fond-blanc-e1616690355918.png] CONFIDENTIALITY NOTICE: This message, and any attachments, is intended only for the use of the addressee or his authorized representative. It may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or his authorized representative, you are hereby notified that any dissemination, distribution or copying of this message and any attachments is strictly prohibited. The integrity of this message cannot be guaranteed on the Internet, IMEKA shall not be liable for its content if altered, changed or falsified. If you have received this message in error, please contact immediately the sender and delete this message and any attachments from your system. AVIS DE CONFIDENTIALITÉ : Ce message, ainsi que tout fichier qui y est joint, est destiné exclusivement aux personnes à qui il est adressé. Il peut contenir des informations de nature confidentielle qui ne doivent être divulguées en vertu des lois applicables. Si vous n'êtes pas le destinataire de ce message ou un mandataire autorisé de celui-ci, vous êtes avisé par la présente que toute impression, diffusion, distribution ou reproduction de ce message et de tout fichier qui y est joint est strictement interdite. L'intégrité de ce message n'étant pas assurée sur Internet, IMEKA ne peut être tenue responsable de son contenu s'il a été altéré, déformé ou falsifié. Si ce message vous a été transmis par erreur, veuillez en aviser sans délai l'expéditeur et l'effacer ainsi que tout fichier joint sans en conserver de copie.
_______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users