<commit_before>cmake_minimum_required(VERSION 2.8)
project(opulence)

IF (WIN32)
    add_definitions(-DGLEW_STATIC)
ENDIF()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${opulence_SOURCE_DIR}/")

find_package(Threads)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLM REQUIRED)

IF (NOT WIN32)
    find_package(GLEW REQUIRED)
ENDIF()


include_directories(${PROJECT_BINARY_DIR}
                    ${OPENGL_INCLUDE_DIRS}
                    ${SDL2_INCLUDE_DIR}
                    ${GLEW_INCLUDE_DIR}
                    ${GLM_INCLUDE_DIRS})

IF (WIN32)
    set(SOURCE_FILES
        ../main.cpp
        opulence.cpp
        src/service/glew/glew.h
        src/service/glew/wglew.h
        src/service/glew/glew.c)
ELSE()
    set(SOURCE_FILES
        ../main.cpp
        opulence.cpp)
ENDIF()

set(HEADER_FILES)
set_source_files_properties(../main.cpp
                            opulence.cpp
                            PROPERTIES
                            LANGUAGE CXX)

add_executable(opulence
            ${SOURCE_FILES}

            # add your cpp and hpp files here!
            # one per line
)

target_link_libraries(opulence
                    ${SDL2_LIBRARY}
                    ${GLEW_LIBRARY}
                    ${OPENGL_LIBRARIES})<commit_msg>forgot to include opulence files in CMakeLists...<commit_after>cmake_minimum_required(VERSION 2.8)
project(opulence)

IF (WIN32)
    add_definitions(-DGLEW_STATIC)
ENDIF()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${opulence_SOURCE_DIR}/")

find_package(Threads)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLM REQUIRED)

IF (NOT WIN32)
    find_package(GLEW REQUIRED)
ENDIF()


include_directories(${PROJECT_BINARY_DIR}
                    ${OPENGL_INCLUDE_DIRS}
                    ${SDL2_INCLUDE_DIR}
                    ${GLEW_INCLUDE_DIR}
                    ${GLM_INCLUDE_DIRS})

IF (WIN32)
    set(SOURCE_FILES
        ../main.cpp
        opulence.cpp
        src/service/glew/glew.h
        src/service/glew/wglew.h
        src/service/glew/glew.c)
ELSE()
    set(SOURCE_FILES
        ../main.cpp
        opulence.cpp)
ENDIF()

set(HEADER_FILES)
set_source_files_properties(../main.cpp
                            opulence.cpp
                            PROPERTIES
                            LANGUAGE CXX)

add_executable(opulence
            ${SOURCE_FILES}

            # entities
            src/entity/Entity.cpp
            src/entity/Entity.h
            src/entity/model/Model.cpp
            src/entity/model/Model.h
            src/entity/animation/Animation.cpp
            src/entity/animation/Animation.h
            src/entity/camera/Camera.cpp
            src/entity/camera/Camera.h
            src/entity/camera/RtsCamera.cpp
            src/entity/camera/RtsCamera.h
            src/entity/light/Light.cpp
            src/entity/light/Light.h
            src/entity/light/PointLight.cpp
            src/entity/light/PointLight.h
            src/entity/light/DirectionalLight.cpp
            src/entity/light/DirectionalLight.h

            # loaders
            src/loader/ShaderLoader.cpp
            src/loader/ShaderLoader.h
            src/loader/ObjLoader.cpp
            src/loader/ObjLoader.h

            # services
            src/service/BufferCourier.cpp
            src/service/BufferCourier.h
            src/service/GLManager.cpp
            src/service/GLManager.h
            src/service/TimeManager.cpp
            src/service/TimeManager.h
            src/service/OsType.h

            # factories
            src/factory/CameraFactory.cpp
            src/factory/CameraFactory.h
            src/factory/LightFactory.cpp
            src/factory/LightFactory.h
            src/factory/ModelFactory.cpp
            src/factory/ModelFactory.h

            # containers
            src/container/obj_data.h
            src/container/mtl_data.h

            # add your cpp and hpp files here!
            # one per line
)

target_link_libraries(opulence
                    ${SDL2_LIBRARY}
                    ${GLEW_LIBRARY}
                    ${OPENGL_LIBRARIES})
{'fraction_non_alphanumeric': 0.09060799621480956, 'fraction_numerical': 0.006150934468890466, 'mean_word_length': 1.7365695792880258, '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': '5652063', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1289, 'n_words': 177}