Page MenuHomePhabricator

Make building a module automatically build all dependencies
Open, NormalPublic

Description

When you want to build a module like for example "BioModelCalc" you also need to build "RTTBITKIO RTTBDicomIO RTTBHelaxIO RTTBModels".
It would be nice if all dependencies specified in the CMakeList.txt would automatically be build.

Event Timeline

Without a fundamental rework of the rttb build mechanics the only way to sooth the problem is to explicitly check if all prerequisits are fullfilled and if not give a meaningfull cmake error message.

E.g. by checking in BioModelCalc

IF(NOT BUILD_All_Modules OR NOT (BUILD_IO_Dicom AND BUILD_IO_HELAX AND BUILD_IO_ITK))
	MESSAGE(ERROR "Please activate all moduls or DICOM IO, HELAX IO and ITK IO to build BioModelCalc")
ENDIF(NOT BUILD_All_Modules OR NOT (BUILD_IO_Dicom AND BUILD_IO_HELAX AND BUILD_IO_ITK))

or setting a parameter in the CMAKE RTTBUtilIO and just check if this parameter is set correctly.