<commit_before>cmake_minimum_required(VERSION 2.8)

include(${SOFA_CMAKE_DIR}/preProject.cmake)

include_directories(${SOFA_EXTLIBS_DIR})

set(HEADER_FILES

	ImagePlaneWidget.h 
	HistogramWidget.h 
#	QImageMouseButtonsWidget.h 
	VectorVisualizationWidget.h 
	)

set(SOURCE_FILES

	initImage.cpp 
	ImageContainer.cpp 
	ImageViewer.cpp 
	ImageFilter.cpp 
    TransferFunction.cpp 
    ImageValuesFromPositions.cpp 
    MergeImages.cpp 
    ImageAccumulator.cpp 
    DepthMapToMeshEngine.cpp 
    MeshToImageEngine.cpp 
    MarchingCubesEngine.cpp 
    ImageSampler.cpp 
    ImageExporter.cpp 
	ImagePlaneWidget.cpp 
    ImageTransformWidget.cpp 
	HistogramWidget.cpp 
#	QImageMouseButtonsWidget.cpp 
    VectorVisualizationWidget.cpp 
    BranchingImageConverter.cpp 
	)

if(SOFA_HAVE_LIBFREENECT)

    list(APPEND HEADER_FILES "Kinect.h")
    list(APPEND SOURCE_FILES "Kinect.cpp")

endif()

set(README_FILES

	image.txt
	)

UseQt()
if(SOFA-EXTERNAL_PREFER_QT4)	
	SOFA_QT4_WRAP_CPP(MOC_FILES ${HEADER_FILES})
else()
	SOFA_QT3_WRAP_CPP(MOC_FILES ${HEADER_FILES})
endif()

# these header files do not need MOCcing
list(APPEND HEADER_FILES

	initImage.h 
	ImageTypes.h 
	ImageContainer.h 
   	ImageViewer.h 
	ImageFilter.h 
    TransferFunction.h 
    ImageValuesFromPositions.h 
    MergeImages.h 
    ImageAccumulator.h 
    DepthMapToMeshEngine.h 
    MeshToImageEngine.h 
    MarchingCubesEngine.h 
    ImageSampler.h 
    ImageExporter.h 
	ImageTransformWidget.h 
    VectorVis.h 
    ImageAlgorithms.h 
    Containers.h 
    BranchingImage.h 
    BranchingImageConverter.h
	)

# make mocced header / form files path from absolute to relative
ToRelativePath(MOC_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "${MOC_FILES}")

set(MOC_FILES_GROUP "Generated")
	
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${MOC_FILES} ${SOURCE_FILES} ${README_FILES})

set(COMPILER_DEFINES "SOFA_BUILD_IMAGE")
set(LINKER_DEPENDENCIES SofaGuiQt ${OPENGL_LIBRARIES})

message(">>>>>>>>>>>>>>> ${OPENGL_LIBRARIES} <<<<<<<<<<<<<<<")

if(SOFA-EXTERNAL_HAVE_OPENCV)

    list(APPEND LINKER_DEPENDENCIES "ml")
    list(APPEND LINKER_DEPENDENCIES "cvaux")
    list(APPEND LINKER_DEPENDENCIES "highgui")
    list(APPEND LINKER_DEPENDENCIES "cv")
    list(APPEND LINKER_DEPENDENCIES "cxcore")

endif()

if(SOFA-EXTERNAL_HAVE_LIBFREENECT)<commit_msg>r9438/sofa : REMOVE: irrelevant cmake message in the CMakeLists.txt of the image plugin<commit_after>cmake_minimum_required(VERSION 2.8)

include(${SOFA_CMAKE_DIR}/preProject.cmake)

include_directories(${SOFA_EXTLIBS_DIR})

set(HEADER_FILES

	ImagePlaneWidget.h 
	HistogramWidget.h 
#	QImageMouseButtonsWidget.h 
	VectorVisualizationWidget.h 
	)

set(SOURCE_FILES

	initImage.cpp 
	ImageContainer.cpp 
	ImageViewer.cpp 
	ImageFilter.cpp 
    TransferFunction.cpp 
    ImageValuesFromPositions.cpp 
    MergeImages.cpp 
    ImageAccumulator.cpp 
    DepthMapToMeshEngine.cpp 
    MeshToImageEngine.cpp 
    MarchingCubesEngine.cpp 
    ImageSampler.cpp 
    ImageExporter.cpp 
	ImagePlaneWidget.cpp 
    ImageTransformWidget.cpp 
	HistogramWidget.cpp 
#	QImageMouseButtonsWidget.cpp 
    VectorVisualizationWidget.cpp 
    BranchingImageConverter.cpp 
	)

if(SOFA_HAVE_LIBFREENECT)

    list(APPEND HEADER_FILES "Kinect.h")
    list(APPEND SOURCE_FILES "Kinect.cpp")

endif()

set(README_FILES

	image.txt
	)

UseQt()
if(SOFA-EXTERNAL_PREFER_QT4)	
	SOFA_QT4_WRAP_CPP(MOC_FILES ${HEADER_FILES})
else()
	SOFA_QT3_WRAP_CPP(MOC_FILES ${HEADER_FILES})
endif()

# these header files do not need MOCcing
list(APPEND HEADER_FILES

	initImage.h 
	ImageTypes.h 
	ImageContainer.h 
   	ImageViewer.h 
	ImageFilter.h 
    TransferFunction.h 
    ImageValuesFromPositions.h 
    MergeImages.h 
    ImageAccumulator.h 
    DepthMapToMeshEngine.h 
    MeshToImageEngine.h 
    MarchingCubesEngine.h 
    ImageSampler.h 
    ImageExporter.h 
	ImageTransformWidget.h 
    VectorVis.h 
    ImageAlgorithms.h 
    Containers.h 
    BranchingImage.h 
    BranchingImageConverter.h
	)

# make mocced header / form files path from absolute to relative
ToRelativePath(MOC_FILES "${CMAKE_CURRENT_SOURCE_DIR}" "${MOC_FILES}")

set(MOC_FILES_GROUP "Generated")
	
add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${MOC_FILES} ${SOURCE_FILES} ${README_FILES})

set(COMPILER_DEFINES "SOFA_BUILD_IMAGE")
set(LINKER_DEPENDENCIES SofaGuiQt ${OPENGL_LIBRARIES})

if(SOFA-EXTERNAL_HAVE_OPENCV)

    list(APPEND LINKER_DEPENDENCIES "ml")
    list(APPEND LINKER_DEPENDENCIES "cvaux")
    list(APPEND LINKER_DEPENDENCIES "highgui")
    list(APPEND LINKER_DEPENDENCIES "cv")
    list(APPEND LINKER_DEPENDENCIES "cxcore")

endif()

if(SOFA-EXTERNAL_HAVE_LIBFREENECT)
{'fraction_non_alphanumeric': 0.08541308089500861, 'fraction_numerical': 0.0030120481927710845, 'mean_word_length': 4.621523579201935, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '7379116', 'n_tokens_mistral': 1860, 'n_tokens_neox': 1705, 'n_words': 252}