<commit_before>include(${SOFA_CMAKE_DIR}/preProject.cmake)

##plugin external dependencies
#find_package( SofaVoxelizerLibs REQUIRED)
#include_directories(${SOFAVOXELIZER_INCLUDE_DIRS})

set(HEADER_FILES

    initVoxelizer.h 
    Voxelizer.h 
    Voxelizer.inl 
	)

set(SOURCE_FILES

    initVoxelizer.cpp 
    Voxelizer.cpp 
	)

set(README_FILES

	Voxelizer.txt
	)

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${README_FILES})

AddCompilerDefinitions("SOFA_BUILD_VOXELIZER")
AddLinkerDependencies(SofaCUDALDI)

include(${SOFA_CMAKE_DIR}/postProject.cmake)<commit_msg>Voxelizer: write new CMakeLists.txt<commit_after>cmake_minimum_required(VERSION 2.8)
project(Voxelizer)

set(VOXELIZER_INSTALL_LIB_DIR     lib     CACHE PATH "Installation directory for libraries relative to CMAKE_INSTALL_PREFIX variable")
set(VOXELIZER_INSTALL_BIN_DIR     bin     CACHE PATH "Installation directory for executables relative to CMAKE_INSTALL_PREFIX variable")
set(VOXELIZER_INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files relative to CMAKE_INSTALL_PREFIX variable")

set(HEADER_FILES
    initVoxelizer.h 
    Voxelizer.h 
    Voxelizer.inl)

set(SOURCE_FILES
    initVoxelizer.cpp 
    Voxelizer.cpp)

set(README_FILES
	Voxelizer.txt)

find_package(SofaFramework REQUIRED)
find_package(SofaCUDALDI REQUIRED)

add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${README_FILES})
set_target_properties(${PROJECT_NAME} PROPERTIES COMPILE_FLAGS "-DSOFA_BUILD_VOXELIZER")
target_link_libraries(${PROJECT_NAME} SofaCore SofaCUDALDI)

install(TARGETS ${PROJECT_NAME}
    COMPONENT Voxelizer_libraries
    EXPORT VoxelizerTargets
    RUNTIME DESTINATION "${VOXELIZER_INSTALL_BIN_DIR}"
    LIBRARY DESTINATION "${VOXELIZER_INSTALL_LIB_DIR}"
    ARCHIVE DESTINATION "${VOXELIZER_INSTALL_LIB_DIR}")

{'fraction_non_alphanumeric': 0.07867607162235486, 'fraction_numerical': 0.0010851871947911015, 'mean_word_length': 6.813559322033898, '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': '6531376', 'n_tokens_mistral': 729, 'n_tokens_neox': 671, 'n_words': 107}