Slicer extension for the Chest Imaging Platform
For a compilation of SlicerCIP you need to fork and compile 3D Slicer locally. This has to be done only once.
set the SLICER_FOLDER variable, for instance to $HOME/slicer/SlicerRelease/Slicer-build
mkdir ../SlicerCIP-build
cd ../SlicerCIP-build
cmake -DCMAKE_CXX_STANDARD:STRING=17 -DCMAKE_BUILD_TYPE:STRING=Release -DSlicer_DIR=${SLICER_FOLDER}/SlicerRelease/Slicer-build ../SlicerCIP
make
Example:
then
set startTime=%time%
mkdir "C:\D\SlicerCIP-build"
cd "C:\D\SlicerCIP-build"
cmake -DSlicer_DIR="C:\D\S5R\Slicer-build" "C:\D\SlicerCIP"
timeout /t 10
' must run this two times for unknown reasons to create SlicerCIP.sln
cmake -DSlicer_DIR="C:\D\S5R\Slicer-build" "C:\D\SlicerCIP"
echo Start Time: %startTime%
echo Finish Time: %time%
pause
Start 3D Slicer go -> "Edit" -> "Application settings" -> "Modules" -> "Additional module paths"
Include the following paths:
C:/D/SlicerCIP-build/inner-build/lib/Slicer-5.1/cli-modules/Release
C:/D/SlicerCIP-build/inner-build/lib/Slicer-5.1/qt-scripted-modules
C:/D/SlicerCIP-build/inner-build/lib/Slicer-5.1/qt-loadable-modules/Release
Restart Slicer and test.
${SLICER_FOLDER}/Slicer --additional-module-path ${PWD}/lib/Slicer-4.2/qt-loadable-modules --python-script ${PWD}/../SlicerCIP/Loadable/AirwayModule/Testing/Python/test_script.py