<commit_before>#
# PCL plugin CMake configuration
#
# The PCL integration still has a few warts that need to be resolved:
# 
#     1. src/kernel/Kernel.cpp requires PCL for invoking the PCLVisualizer with
#        two point buffers.
#
#        This is currently disabled (commented out), and should be somehow
#        fully integrated as a plugin behavior.
#
#     2. PCL unit tests still live within main test directory.
#
#        We should be able to move plugin tests to plugin directories without
#        too much hassle. PCL unit tests will pass with a warning if the PCL
#        plugins are not installed in PDAL_DRIVER_PATH (just assumes you didn't
#        intend to test with PCL support).
#

#------------------------------------------------------------------------------
# settings for PCL
#------------------------------------------------------------------------------

include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/plugin/pcl)

find_package(PCL 1.7)
if(PCL_FOUND)
    set(PCL_LINKAGE "LINK_PUBLIC;general")
    include_directories(${PCL_INCLUDE_DIRS})
    link_directories(${PCL_LIBRARY_DIRS})
    add_definitions(${PCL_DEFINITIONS})
    add_definitions("-fvisibility-inlines-hidden")

    # PCL's configuration clobbers Boost find_package - do it again
    find_package(Boost 1.52 COMPONENTS program_options thread iostreams filesystem system unit_test_framework random)

    message(STATUS "...building with PCL")

    #
    # PCLVisualizer Writer
    #
    set(srcs
	drivers/PCLVisualizer.cpp
    )

    set(incs
	drivers/PCLVisualizer.hpp
	PCLConversions.hpp
    )

    set(PCLVIZ_LIB_NAME pdal_plugin_writer_pclvisualizer)
    PDAL_ADD_PLUGIN(${PCLVIZ_LIB_NAME} writer pclvisualizer ${srcs} ${incs})

    #
    # PCD Reader
    #
    set(srcs
	drivers/PcdCommon.cpp
	drivers/PcdReader.cpp
    )
<commit_msg>PCL_VISUALIZATION_FOUND will be TRUE if it is supported, only build the PCLVisualization driver if that is the case<commit_after>#
# PCL plugin CMake configuration
#
# The PCL integration still has a few warts that need to be resolved:
# 
#     1. src/kernel/Kernel.cpp requires PCL for invoking the PCLVisualizer with
#        two point buffers.
#
#        This is currently disabled (commented out), and should be somehow
#        fully integrated as a plugin behavior.
#
#     2. PCL unit tests still live within main test directory.
#
#        We should be able to move plugin tests to plugin directories without
#        too much hassle. PCL unit tests will pass with a warning if the PCL
#        plugins are not installed in PDAL_DRIVER_PATH (just assumes you didn't
#        intend to test with PCL support).
#

#------------------------------------------------------------------------------
# settings for PCL
#------------------------------------------------------------------------------

include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/plugin/pcl)

find_package(PCL 1.7)
if(PCL_FOUND)
    set(PCL_LINKAGE "LINK_PUBLIC;general")
    include_directories(${PCL_INCLUDE_DIRS})
    link_directories(${PCL_LIBRARY_DIRS})
    add_definitions(${PCL_DEFINITIONS})
    add_definitions("-fvisibility-inlines-hidden")

    # PCL's configuration clobbers Boost find_package - do it again
    find_package(Boost 1.52 COMPONENTS program_options thread iostreams filesystem system unit_test_framework random)

    message(STATUS "..building with PCL")

    if (PCL_VISUALIZATION_FOUND)
        message(STATUS "..building with PCL Visualization")
	#
	# PCLVisualizer Writer
	#
	set(srcs
	    drivers/PCLVisualizer.cpp
	)

	set(incs
	    drivers/PCLVisualizer.hpp
	    PCLConversions.hpp
	)

	set(PCLVIZ_LIB_NAME pdal_plugin_writer_pclvisualizer)
	PDAL_ADD_PLUGIN(${PCLVIZ_LIB_NAME} writer pclvisualizer ${srcs} ${incs})
    else()
        message(STATUS "..building without PCL Visualization")
    endif()

    #
    # PCD Reader
    #
    set(srcs
	drivers/PcdCommon.cpp
	drivers/PcdReader.cpp
    )

{'fraction_non_alphanumeric': 0.14836942992282798, 'fraction_numerical': 0.0034851879512073688, 'mean_word_length': 2.6198198198198197, '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': '4114407', 'n_tokens_mistral': 1260, 'n_tokens_neox': 1202, 'n_words': 337}