<commit_before>##############################################################################
#
# Library:   TubeTK
#
# Copyright 2010 Kitware Inc. 28 Corporate Drive,
# Clifton Park, NY, 12065, USA.
#
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################

add_subdirectory( CLI )
add_subdirectory( Common )
add_subdirectory( Numerics )
add_subdirectory( IO )
add_subdirectory( ObjectDocuments )

if( TubeTK_USE_PYTHON )
  add_subdirectory( Python )
endif( TubeTK_USE_PYTHON )

add_subdirectory( Filtering )
add_subdirectory( Registration )
add_subdirectory( Segmentation )
add_subdirectory( USTK )<commit_msg>STYLE: Add Base subdirectory conditionally<commit_after>##############################################################################
#
# Library:   TubeTK
#
# Copyright 2010 Kitware Inc. 28 Corporate Drive,
# Clifton Park, NY, 12065, USA.
#
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
macro( _subdirectory_conditional_add name )
  if( NOT DEFINED TubeTK_BUILD_BASE_${name} )
    set( TubeTK_BUILD_BASE_${name} 1 )
    if( ITK_SOURCE_DIR )
      # TubeTK base libraries required by ITKTubeTK module will have
      # to be explicitly enabled.
      set( TubeTK_BUILD_BASE_${name} 0 )
    endif()
  endif()
  if( TubeTK_BUILD_BASE_${name} )
    add_subdirectory( ${name} )
  endif()
endmacro()

_subdirectory_conditional_add( CLI )
_subdirectory_conditional_add( Common )
_subdirectory_conditional_add( Numerics )
_subdirectory_conditional_add( IO )
_subdirectory_conditional_add( ObjectDocuments )

if( TubeTK_USE_PYTHON )
  _subdirectory_conditional_add( Python )
endif( TubeTK_USE_PYTHON )

_subdirectory_conditional_add( Filtering )
_subdirectory_conditional_add( Registration )
_subdirectory_conditional_add( Segmentation )
_subdirectory_conditional_add( USTK )
{'fraction_non_alphanumeric': 0.17136150234741784, 'fraction_numerical': 0.010731052984574111, 'mean_word_length': 5.584988962472406, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '68508', 'n_tokens_mistral': 885, 'n_tokens_neox': 805, 'n_words': 280}