<commit_before>MITK_CHECK_MODULE(MISSING QmitkExt)
IF (MISSING) 
MESSAGE("Tutorial won't be built because QmitkExt is missing.")
ELSE(MISSING) 
MITK_USE_MODULE(QmitkExt)

INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES})


# initialize only the source lists which need additional files
# Step6 is reused in Step7 and Step8. Step6.cpp has to be added 
# explicitly since it is not a member of ${STEP6_CPP} at this point
SET(STEP6_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6main.cpp)
SET(STEP7_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6.cpp Step7main.cpp)
SET(STEP8_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6.cpp Step8main.cpp)

# some files need Qt wrapping
QT4_WRAP_CPP(STEP6_MOC_CPP Step6.h)
QT4_WRAP_CPP(STEP7_MOC_CPP Step7.h)
QT4_WRAP_CPP(STEP8_MOC_CPP Step8.h)

# set additional moc files to build
SET(STEP6_CPP ${STEP6_CPP} ${STEP6_MOC_CPP})
SET(STEP7_CPP ${STEP7_CPP} ${STEP7_MOC_CPP} ${STEP6_MOC_CPP})
SET(STEP8_CPP ${STEP8_CPP} ${STEP8_MOC_CPP} ${STEP7_MOC_CPP} ${STEP6_MOC_CPP})

# for the others it's all the same
FOREACH(stepNo RANGE 1 8) 
  SET(STEP${stepNo}_CPP ${STEP${stepNo}_CPP} Step${stepNo}.cpp QtTesting.cpp)
  ADD_EXECUTABLE(Step${stepNo} ${STEP${stepNo}_CPP})
  TARGET_LINK_LIBRARIES(Step${stepNo} ${ALL_LIBRARIES})
  
ENDFOREACH(stepNo)

ADD_DEPENDENCIES(Step7 Step6)
ADD_DEPENDENCIES(Step8 Step7 Step6)

ENDIF(MISSING)<commit_msg>COMP (#3495): Adding Step7.cpp to Step 8<commit_after>MITK_CHECK_MODULE(MISSING QmitkExt)
IF (MISSING) 
MESSAGE("Tutorial won't be built because QmitkExt is missing.")
ELSE(MISSING) 
MITK_USE_MODULE(QmitkExt)

INCLUDE_DIRECTORIES(${ALL_INCLUDE_DIRECTORIES})


# initialize only the source lists which need additional files
# Step6 is reused in Step7 and Step8. Step6.cpp has to be added 
# explicitly since it is not a member of ${STEP6_CPP} at this point
SET(STEP6_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6main.cpp)
SET(STEP7_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6.cpp Step7main.cpp)
SET(STEP8_CPP Step6RegionGrowing1.cpp Step6RegionGrowing2.cpp Step6.cpp Step7.cpp Step8main.cpp)

# some files need Qt wrapping
QT4_WRAP_CPP(STEP6_MOC_CPP Step6.h)
QT4_WRAP_CPP(STEP7_MOC_CPP Step7.h)
QT4_WRAP_CPP(STEP8_MOC_CPP Step8.h)

# set additional moc files to build
SET(STEP6_CPP ${STEP6_CPP} ${STEP6_MOC_CPP})
SET(STEP7_CPP ${STEP7_CPP} ${STEP7_MOC_CPP} ${STEP6_MOC_CPP})
SET(STEP8_CPP ${STEP8_CPP} ${STEP8_MOC_CPP} ${STEP7_MOC_CPP} ${STEP6_MOC_CPP})

# for the others it's all the same
FOREACH(stepNo RANGE 1 8) 
  SET(STEP${stepNo}_CPP ${STEP${stepNo}_CPP} Step${stepNo}.cpp QtTesting.cpp)
  ADD_EXECUTABLE(Step${stepNo} ${STEP${stepNo}_CPP})
  TARGET_LINK_LIBRARIES(Step${stepNo} ${ALL_LIBRARIES})
  
ENDFOREACH(stepNo)

ADD_DEPENDENCIES(Step7 Step6)
ADD_DEPENDENCIES(Step8 Step7 Step6)

ENDIF(MISSING)
{'fraction_non_alphanumeric': 0.09968186638388123, 'fraction_numerical': 0.039943442912689996, 'mean_word_length': 7.473053892215569, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6183872', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1159, 'n_words': 240}