<commit_before>project ( coffeeimgui )
cmake_minimum_required(VERSION 3.1)

set ( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/Modules" )
include( SubprojectFunctions )
Init_Subproject()

find_package ( StandardLibs REQUIRED )
if(COFFEE_BUILD_SDL2)
    find_package ( SDL2 REQUIRED )
endif()
import_coffee_lib ( Coffee REQUIRED )

set ( IMGUI_DIR
    ${CMAKE_SOURCE_DIR}/libs/imgui
    )

set ( SRCS
    src/imgui_binding.cpp
    ${IMGUI_DIR}/imgui.cpp
    ${IMGUI_DIR}/imgui_draw.cpp
    )

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    list ( APPEND SRCS
        ${IMGUI_DIR}/imgui_demo.cpp
        )
endif()

set ( LIBS
    CoffeeCore; CoffeeRenderer_Default;
    CoffeeGLeamRHI;
    )

set ( PERMS
    OPENGL;AUDIO;ENVIRONMENT_SENSORS;NETWORK_CONNECT;JOYSTICK
    )

include_directories (
    ${Coffee_INCLUDE_DIRS}
    )

add_definitions(
	-DCOFFEE_IMGUI_USE_GLEAM
	-DIMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS
	-DIMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS
	)

coffee_add_library ( CoffeeImGui
    "${SRCS}" "${LIBS}"
    "${CMAKE_SOURCE_DIR}/include/coffee/imgui"
    )

target_include_directories ( CoffeeImGui
    PUBLIC
    $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/libs/imgui/>
    $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
    $<INSTALL_INTERFACE:include/><commit_msg> - Update for new CMake macros<commit_after>project ( coffeeimgui )
cmake_minimum_required(VERSION 3.1)

set ( CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_SOURCE_DIR}/cmake/Modules" )
include( SubprojectFunctions )
Init_Subproject()

find_package ( StandardLibs REQUIRED )
if(COFFEE_BUILD_SDL2)
    find_package ( SDL2 REQUIRED )
endif()
import_coffee_lib ( Coffee REQUIRED )

set ( IMGUI_DIR
    ${CMAKE_SOURCE_DIR}/libs/imgui
    )

set ( SRCS
    src/imgui_binding.cpp
    ${IMGUI_DIR}/imgui.cpp
    ${IMGUI_DIR}/imgui_draw.cpp
    )

if(CMAKE_BUILD_TYPE STREQUAL "Debug")
    list ( APPEND SRCS
        ${IMGUI_DIR}/imgui_demo.cpp
        )
endif()

set ( LIBS
    CoffeeCore; CoffeeRenderer_Default;
    CoffeeGLeamRHI;
    )

set ( PERMS
    OPENGL;AUDIO;ENVIRONMENT_SENSORS;NETWORK_CONNECT;JOYSTICK
    )

include_directories (
    ${Coffee_INCLUDE_DIRS}
    )

add_definitions(
	-DCOFFEE_IMGUI_USE_GLEAM
	-DIMGUI_DISABLE_WIN32_DEFAULT_CLIPBOARD_FUNCS
	-DIMGUI_DISABLE_WIN32_DEFAULT_IME_FUNCS
	)

coffee_library ( 
    TARGET CoffeeImGui
    SOURCES ${SRCS} 
    LIBRARIES ${LIBS}
    HEADER_DIRS "${CMAKE_SOURCE_DIR}/include/coffee/imgui"
    )

target_include_directories ( CoffeeImGui
    PUBLIC
    $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/libs/imgui/>
    $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
    $<INSTALL_INTERFACE:include/>
{'fraction_non_alphanumeric': 0.10030280090840273, 'fraction_numerical': 0.006056018168054504, 'mean_word_length': 4.460743801652892, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5953277', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1028, 'n_words': 132}