<commit_before>cmake_minimum_required(VERSION 2.8)

project(OpenCLUtilityLibrary)

option(BUILD_TESTS "Build tests." ON)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake)
find_package( OpenCL REQUIRED )

find_package( OpenGL REQUIRED )

set(OpenCLUtilityLibrary_INCLUDE_DIRS
    .
    /CL
    ${OPENCL_INCLUDE_DIR}
    ${OPENGL_INCLUDE_DIR}
)

include_directories(${OpenCLUtilityLibrary_INCLUDE_DIRS})

set(SOURCE_FILES
    Context.hpp
    Context.cpp
    DeviceCriteria.hpp
    DeviceCriteria.cpp
    Exceptions.hpp
    Exceptions.cpp
    GarbageCollector.hpp
    GarbageCollector.cpp
    HelperFunctions.hpp
    HelperFunctions.cpp
    OpenCLManager.hpp
    OpenCLManager.cpp
)

set(OpenCLUtilityLibrary_LINK_LIBRARIES  
    ${OPENCL_LIBRARIES}
    ${OPENGL_LIBRARIES}
)

add_library (OpenCLUtilityLibrary ${SOURCE_FILES})
target_link_libraries(OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})

add_executable (example example.cpp)
target_link_libraries(example OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})


if(BUILD_TESTS)
    add_subdirectory(testing)
endif(BUILD_TESTS)<commit_msg>added PARENT_SCOPE to include dirs and commented out testing as it creates problems when PARENT_SCOPE is set<commit_after>cmake_minimum_required(VERSION 2.8)

project(OpenCLUtilityLibrary)

option(BUILD_TESTS "Build tests." ON)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMake)
find_package( OpenCL REQUIRED )

find_package( OpenGL REQUIRED )

set(OpenCLUtilityLibrary_INCLUDE_DIRS
    .
    /CL
    ${OPENCL_INCLUDE_DIR}
    ${OPENGL_INCLUDE_DIR}
    PARENT_SCOPE
)
set(OpenCLUtilityLibrary_INCLUDE_DIRS2
    .
    /CL
    ${OPENCL_INCLUDE_DIR}
    ${OPENGL_INCLUDE_DIR}
)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
include_directories(${OpenCLUtilityLibrary_INCLUDE_DIRS})

set(SOURCE_FILES
    Context.hpp
    Context.cpp
    DeviceCriteria.hpp
    DeviceCriteria.cpp
    Exceptions.hpp
    Exceptions.cpp
    GarbageCollector.hpp
    GarbageCollector.cpp
    HelperFunctions.hpp
    HelperFunctions.cpp
    OpenCLManager.hpp
    OpenCLManager.cpp
)

set(OpenCLUtilityLibrary_LINK_LIBRARIES  
    ${OPENCL_LIBRARIES}
    ${OPENGL_LIBRARIES}
)

add_library (OpenCLUtilityLibrary ${SOURCE_FILES})
target_link_libraries(OpenCLUtilityLibrary ${OpenCLUtilityLibrary_LINK_LIBRARIES})

add_executable (example example.cpp)
target_link_libraries(example OpenCLUtilityLibrary)

#if(BUILD_TESTS)
#    add_subdirectory(testing)
#endif(BUILD_TESTS)
{'fraction_non_alphanumeric': 0.07670795045944866, 'fraction_numerical': 0.001997602876548142, 'mean_word_length': 5.659574468085107, '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': '4688090', 'n_tokens_mistral': 907, 'n_tokens_neox': 861, 'n_words': 124}