<commit_before>set(SUBSYS_NAME 2d)
set(SUBSYS_DESC "Point cloud 2d")
set(SUBSYS_DEPS common)

set(build false)
PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ON)
PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS io ${SUBSYS_DEPS} OPT_DEPS vtk)

PCL_ADD_DOC(${SUBSYS_NAME})

if(build)
    set(srcs
        src/convolution_2d.cpp
		test/test_convolution.cpp
        )

    set(incs
        include/pcl/${SUBSYS_NAME}/convolution_2d.h
        include/pcl/${SUBSYS_NAME}/edge.h
        )

    set(impl_incs
        include/pcl/${SUBSYS_NAME}/impl/convolution_2d.hpp
        include/pcl/${SUBSYS_NAME}/impl/edge.hpp
        )

    set(LIB_NAME pcl_${SUBSYS_NAME})
    
    set(VTK_USE_FILE ${VTK_USE_FILE} CACHE INTERNAL "VTK_USE_FILE")
    include (${VTK_USE_FILE})
    set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkIO vtkImaging)

    include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${VTK_INCLUDE_DIRECTORIES})
    PCL_ADD_LIBRARY(${LIB_NAME} ${SUBSYS_NAME} ${srcs} ${incs} ${impl_incs})
    link_directories(${VTK_LINK_DIRECTORIES})
    target_link_libraries(${LIB_NAME} ${VTK_IO_TARGET_LINK_LIBRARIES}) 
    PCL_MAKE_PKGCONFIG(${LIB_NAME} ${SUBSYS_NAME} "${SUBSYS_DESC}" "${SUBSYS_DEPS}" "" "" "" "")

	# Install include files
    PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME} ${incs} io)
    PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME}/impl ${impl_incs} io)
    add_executable(test_2d test/test_convolution.cpp)
    target_link_libraries(test_2d ${VTK_IO_TARGET_LINK_LIBRARIES} pcl_io) 
endif(build)
<commit_msg>Setting the default build option for the 2d module to false, as it is constantly messing up the builds<commit_after>set(SUBSYS_NAME 2d)
set(SUBSYS_DESC "Point cloud 2d")
set(SUBSYS_DEPS common)

set(build FALSE)
PCL_SUBSYS_OPTION(build ${SUBSYS_NAME} ${SUBSYS_DESC} ON)
PCL_SUBSYS_DEPEND(build ${SUBSYS_NAME} DEPS io ${SUBSYS_DEPS} OPT_DEPS vtk)

PCL_ADD_DOC(${SUBSYS_NAME})

if(build)
    set(srcs
        src/convolution_2d.cpp
		test/test_convolution.cpp
        )

    set(incs
        include/pcl/${SUBSYS_NAME}/convolution_2d.h
        include/pcl/${SUBSYS_NAME}/edge.h
        )

    set(impl_incs
        include/pcl/${SUBSYS_NAME}/impl/convolution_2d.hpp
        include/pcl/${SUBSYS_NAME}/impl/edge.hpp
        )

    set(LIB_NAME pcl_${SUBSYS_NAME})
    
    set(VTK_USE_FILE ${VTK_USE_FILE} CACHE INTERNAL "VTK_USE_FILE")
    include (${VTK_USE_FILE})
    set(VTK_IO_TARGET_LINK_LIBRARIES vtkCommon vtkWidgets vtkIO vtkImaging)

    include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include ${VTK_INCLUDE_DIRECTORIES})
    PCL_ADD_LIBRARY(${LIB_NAME} ${SUBSYS_NAME} ${srcs} ${incs} ${impl_incs})
    link_directories(${VTK_LINK_DIRECTORIES})
    target_link_libraries(${LIB_NAME} ${VTK_IO_TARGET_LINK_LIBRARIES}) 
    PCL_MAKE_PKGCONFIG(${LIB_NAME} ${SUBSYS_NAME} "${SUBSYS_DESC}" "${SUBSYS_DEPS}" "" "" "" "")

	# Install include files
    PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME} ${incs} io)
    PCL_ADD_INCLUDES(${SUBSYS_NAME} ${SUBSYS_NAME}/impl ${impl_incs} io)
    add_executable(test_2d test/test_convolution.cpp)
    target_link_libraries(test_2d ${VTK_IO_TARGET_LINK_LIBRARIES} pcl_io) 
endif(build)

{'fraction_non_alphanumeric': 0.12369503321733628, 'fraction_numerical': 0.004745333755140778, 'mean_word_length': 4.932457786116323, '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': '7083303', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1301, 'n_words': 172}