<commit_before>INCLUDE_DIRECTORIES(${SpeakEasy_BINARY_DIR}/src)
INCLUDE_DIRECTORIES(${GLFW_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${GLEW_INCLUDE_DIR})

SET(SHADER_TO_HEADER "shader_to_header")
ADD_SUBDIRECTORY(shaders)

SET(SpeakEasy_src
    SE_CClock.cpp
    SE_CGUIGLFW.cpp
    SE_CGUIManager.cpp
    SE_CGUIInterface.cpp
    SE_CLogManager.cpp
    SE_CMemoryManager.cpp
    SE_CRenderManager.cpp
    SE_CStackAllocator.cpp
    SE_IBaseManager.cpp
    main.cpp
)

# list headers (used for MSVC)
SET(SpeakEasy_headers
    SE_CClock.h
    SE_CGUIGLFW.h
    SE_CGUIManager.h
    SE_CGUIInterface.h
    SE_CLogManager.h
    SE_CMemoryManager.h
    SE_CRenderManager.h
    SE_CStackAllocator.h
    SE_IBaseManager.h
    SE_Types.h
    config.h.cmake
    config.h # generated from the above file
)

# list dependencies
SET(SpeakEasy_Libs
    ${OPENGL_LIBRARIES}
    ${OPENGL_glu_LIBRARY}
    ${GLFW_LIBRARY}
    ${GLEW_LIBRARY}
    ${CMAKE_THREAD_LIBS_INIT}
)

IF(UNIX AND NOT APPLE)
    LIST(APPEND SpeakEasy_Libs
         ${X11_Xrandr_LIB}
         ${X11_Xinput_LIB}
         ${X11_Xxf86vm_LIB}
         ${X11_Xcursor_LIB}
    )
ELSEIF(APPLE)
    # Set up library and include paths
    FIND_LIBRARY(COCOA_FRAMEWORK Cocoa)
    FIND_LIBRARY(IOKIT_FRAMEWORK IOKit)
    FIND_LIBRARY(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
    FIND_LIBRARY(CORE_VIDEO_FRAMEWORK CoreVideo)
    LIST(APPEND SpeakEasy_Libs ${COCOA_FRAMEWORK}
                               ${OPENGL_gl_LIBRARY}
                               ${IOKIT_FRAMEWORK}
                               ${CORE_FOUNDATION_FRAMEWORK}
                               ${CORE_VIDEO_FRAMEWORK})
ENDIF()

# executable declaration
SET(Executable_name speakeasy)
# WIN32 allows to set the SUBSYSTEM:WINDOW flag in visual studio
# it is ignored on all platforms other than WIN32
ADD_EXECUTABLE(
    ${Executable_name} WIN32
    ${SpeakEasy_src}
    ${SpeakEasy_headers}
)
<commit_msg>Explicit shaders in CMake to make them appear in the project in Xcode<commit_after>INCLUDE_DIRECTORIES(${SpeakEasy_BINARY_DIR}/src)
INCLUDE_DIRECTORIES(${GLFW_INCLUDE_DIR})
INCLUDE_DIRECTORIES(${GLEW_INCLUDE_DIR})

SET(SHADER_TO_HEADER "shader_to_header")
ADD_SUBDIRECTORY(shaders)

SET(SpeakEasy_src
    SE_CClock.cpp
    SE_CGUIGLFW.cpp
    SE_CGUIManager.cpp
    SE_CGUIInterface.cpp
    SE_CLogManager.cpp
    SE_CMemoryManager.cpp
    SE_CRenderManager.cpp
    SE_CStackAllocator.cpp
    SE_IBaseManager.cpp
    main.cpp
)

# list headers (used for MSVC)
SET(SpeakEasy_headers
    SE_CClock.h
    SE_CGUIGLFW.h
    SE_CGUIManager.h
    SE_CGUIInterface.h
    SE_CLogManager.h
    SE_CMemoryManager.h
    SE_CRenderManager.h
    SE_CStackAllocator.h
    SE_IBaseManager.h
    SE_Types.h
    config.h.cmake
    config.h # generated from the above file
)

# list shaders
SET(SpeakEasy_shaders
    shaders/simple_fs.glsl
    shaders/simple_vs.glsl
)

# list dependencies
SET(SpeakEasy_Libs
    ${OPENGL_LIBRARIES}
    ${OPENGL_glu_LIBRARY}
    ${GLFW_LIBRARY}
    ${GLEW_LIBRARY}
    ${CMAKE_THREAD_LIBS_INIT}
)

IF(UNIX AND NOT APPLE)
    LIST(APPEND SpeakEasy_Libs
         ${X11_Xrandr_LIB}
         ${X11_Xinput_LIB}
         ${X11_Xxf86vm_LIB}
         ${X11_Xcursor_LIB}
    )
ELSEIF(APPLE)
    # Set up library and include paths
    FIND_LIBRARY(COCOA_FRAMEWORK Cocoa)
    FIND_LIBRARY(IOKIT_FRAMEWORK IOKit)
    FIND_LIBRARY(CORE_FOUNDATION_FRAMEWORK CoreFoundation)
    FIND_LIBRARY(CORE_VIDEO_FRAMEWORK CoreVideo)
    LIST(APPEND SpeakEasy_Libs ${COCOA_FRAMEWORK}
                               ${OPENGL_gl_LIBRARY}
                               ${IOKIT_FRAMEWORK}
                               ${CORE_FOUNDATION_FRAMEWORK}
                               ${CORE_VIDEO_FRAMEWORK})
ENDIF()

# executable declaration
SET(Executable_name speakeasy)
# WIN32 allows to set the SUBSYSTEM:WINDOW flag in visual studio
# it is ignored on all platforms other than WIN32
ADD_EXECUTABLE(
    ${Executable_name} WIN32
    ${SpeakEasy_src}
    ${SpeakEasy_headers}
    ${SpeakEasy_shaders}
)

{'fraction_non_alphanumeric': 0.07087596705764912, 'fraction_numerical': 0.0079860244571999, 'mean_word_length': 3.1576763485477177, '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': '1503370', 'n_tokens_mistral': 1548, 'n_tokens_neox': 1485, 'n_words': 236}