<commit_before># Copyright (c) 2017 Jackal Engine, MIT License.
cmake_minimum_required(VERSION 2.8.11)
project("OpenGLRenderDevice")

find_package(OpenGL)

set(JACKAL_OPENGL_RENDEV_NAME "OpenGLDevice")
set(OPENGL_PUBLIC_DIR            Public/OpenGLDevice)
set(OPENGL_PRIVATE_DIR           Private)
set(OPENGL_WIN32_PUBLIC_DIR      ${OPENGL_PUBLIC_DIR}/Win32)
set(OPENGL_WIN32_PRIVATE_DIR     ${OPENGL_PRIVATE_DIR}/Win32)

set(OPENGL_FILES
  ${OPENGL_PUBLIC_DIR}/OpenGLDevice.hpp
  ${OPENGL_PRIVATE_DIR}/OpenGLDevice.cpp
  ${OPENGL_PUBLIC_DIR}/OpenGLConfigs.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLCommandBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLComputePipelineState.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLGraphicsPipelineState.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLCubemap.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLFrameBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLGPUQuery.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLMaterial.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLRenderPass.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLRenderTarget.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLShader.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLTexture.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLUniformBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLVertexBuffer.hpp

  ${OPENGL_PRIVATE_DIR}/OpenGLComputePipelineState.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLGraphicsPipelineState.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLGPUQuery.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLMaterial.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLRenderPass.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLRenderTarget.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLShader.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLTexture.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLUniformBuffer.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLVertexBuffer.cpp

  ${JACKAL_THIRD_PARTY_DIR}/opengl/glad/glad.c
)

if (WIN32)
  set(OPENGL_FILES
    ${OPENGL_FILES}
    ${OPENGL_WIN32_PUBLIC_DIR}/Win32OpenGL.hpp
    ${OPENGL_WIN32_PRIVATE_DIR}/Win32OpenGL.cpp
  )
endif()


if (OPENGL_FOUND)
  include_directories(
    ${JACKAL_INCLUDE_DIR}
    ${OPENGL_LIBRARIES}
  )

  # Add up the files of opengl.
  add_library(${JACKAL_OPENGL_RENDEV_NAME} STATIC<commit_msg>Accidental addition of opengl libs as includes<commit_after># Copyright (c) 2017 Jackal Engine, MIT License.
cmake_minimum_required(VERSION 2.8.11)
project("OpenGLRenderDevice")

find_package(OpenGL)

set(JACKAL_OPENGL_RENDEV_NAME "OpenGLDevice")
set(OPENGL_PUBLIC_DIR            Public/OpenGLDevice)
set(OPENGL_PRIVATE_DIR           Private)
set(OPENGL_WIN32_PUBLIC_DIR      ${OPENGL_PUBLIC_DIR}/Win32)
set(OPENGL_WIN32_PRIVATE_DIR     ${OPENGL_PRIVATE_DIR}/Win32)

set(OPENGL_FILES
  ${OPENGL_PUBLIC_DIR}/OpenGLDevice.hpp
  ${OPENGL_PRIVATE_DIR}/OpenGLDevice.cpp
  ${OPENGL_PUBLIC_DIR}/OpenGLConfigs.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLCommandBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLComputePipelineState.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLGraphicsPipelineState.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLCubemap.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLFrameBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLGPUQuery.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLMaterial.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLRenderPass.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLRenderTarget.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLShader.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLTexture.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLUniformBuffer.hpp
  ${OPENGL_PUBLIC_DIR}/OpenGLVertexBuffer.hpp

  ${OPENGL_PRIVATE_DIR}/OpenGLComputePipelineState.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLGraphicsPipelineState.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLGPUQuery.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLMaterial.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLRenderPass.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLRenderTarget.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLShader.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLTexture.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLUniformBuffer.cpp
  ${OPENGL_PRIVATE_DIR}/OpenGLVertexBuffer.cpp

  ${JACKAL_THIRD_PARTY_DIR}/opengl/glad/glad.c
)

if (WIN32)
  set(OPENGL_FILES
    ${OPENGL_FILES}
    ${OPENGL_WIN32_PUBLIC_DIR}/Win32OpenGL.hpp
    ${OPENGL_WIN32_PRIVATE_DIR}/Win32OpenGL.cpp
  )
endif()


if (OPENGL_FOUND)
  include_directories(
    ${JACKAL_INCLUDE_DIR}
    ${OPENGL_INCLUDE_DIR}
  )

  # Add up the files of opengl.
  add_library(${JACKAL_OPENGL_RENDEV_NAME} STATIC
{'fraction_non_alphanumeric': 0.10464259395725865, 'fraction_numerical': 0.012773274379759274, 'mean_word_length': 6.582867783985103, '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': '7474433', 'n_tokens_mistral': 1656, 'n_tokens_neox': 1566, 'n_words': 145}