<commit_before>cmake_minimum_required(VERSION 2.8)

project(kiwano)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(Granite REQUIRED)
if(NOT WIN32)
  find_package(Freetype REQUIRED)
  find_package(OpenGL REQUIRED)
endif()
find_package(Threads)
find_package(taglib REQUIRED)
find_package(libcue REQUIRED)

if(CMAKE_COMPILER_IS_GNUCXX)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -msse -msse2 -msse3")
  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
endif()

include_directories("${PROJECT_SOURCE_DIR}/JUCE")
include_directories("${PROJECT_SOURCE_DIR}/sqlite")
if(NOT WIN32)
  include_directories(${FREETYPE_INCLUDE_DIRS})
  include_directories(${OPENGL_INCLUDE_DIRS})
endif()
include_directories(${GRANITE_INCLUDE_DIRS})
include_directories(${TAGLIB_INCLUDE_DIRS})
include_directories(${LIBCUE_INCLUDE_DIRS})

if(MINGW)
  link_libraries(ks ksuser ksguid wsock32 wininet version ole32 ws2_32 oleaut32 imm32 comdlg32 shlwapi rpcrt4 winmm opengl32 uuid)
else()
  link_libraries(rt dl asound X11 Xext)
endif()
if(NOT WIN32)
  link_libraries(${FREETYPE_LIBRARIES})
  link_libraries(${OPENGL_LIBRARIES})
endif()
link_libraries(${CMAKE_THREAD_LIBS_INIT})
link_libraries(${GRANITE_LIBRARIES})
link_libraries(${TAGLIB_LIBRARIES})
link_libraries(${LIBCUE_LIBRARIES})

add_executable(kiwano WIN32
  "${PROJECT_SOURCE_DIR}/src/main.cpp"
  "${PROJECT_SOURCE_DIR}/src/customTags.cpp"
  "${PROJECT_SOURCE_DIR}/src/settings.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_core/juce_core.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_gui_basics/juce_gui_basics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_events/juce_events.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_opengl/juce_opengl.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_graphics/juce_graphics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_data_structures/juce_data_structures.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_devices/juce_audio_devices.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_basics/juce_audio_basics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_utils/juce_audio_utils.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_formats/juce_audio_formats.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_processors/juce_audio_processors.cpp"
  "${PROJECT_SOURCE_DIR}/sqlite/sqlite3.c")<commit_msg>+ install target (copy binary)<commit_after>cmake_minimum_required(VERSION 2.8)

project(kiwano)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(Granite REQUIRED)
if(NOT WIN32)
  find_package(Freetype REQUIRED)
  find_package(OpenGL REQUIRED)
endif()
find_package(Threads)
find_package(taglib REQUIRED)
find_package(libcue REQUIRED)

if(CMAKE_COMPILER_IS_GNUCXX)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall -msse -msse2 -msse3")
  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
endif()

include_directories("${PROJECT_SOURCE_DIR}/JUCE")
include_directories("${PROJECT_SOURCE_DIR}/sqlite")
if(NOT WIN32)
  include_directories(${FREETYPE_INCLUDE_DIRS})
  include_directories(${OPENGL_INCLUDE_DIRS})
endif()
include_directories(${GRANITE_INCLUDE_DIRS})
include_directories(${TAGLIB_INCLUDE_DIRS})
include_directories(${LIBCUE_INCLUDE_DIRS})

if(MINGW)
  link_libraries(ks ksuser ksguid wsock32 wininet version ole32 ws2_32 oleaut32 imm32 comdlg32 shlwapi rpcrt4 winmm opengl32 uuid)
else()
  link_libraries(rt dl asound X11 Xext)
endif()
if(NOT WIN32)
  link_libraries(${FREETYPE_LIBRARIES})
  link_libraries(${OPENGL_LIBRARIES})
endif()
link_libraries(${CMAKE_THREAD_LIBS_INIT})
link_libraries(${GRANITE_LIBRARIES})
link_libraries(${TAGLIB_LIBRARIES})
link_libraries(${LIBCUE_LIBRARIES})

add_executable(kiwano WIN32
  "${PROJECT_SOURCE_DIR}/src/main.cpp"
  "${PROJECT_SOURCE_DIR}/src/customTags.cpp"
  "${PROJECT_SOURCE_DIR}/src/settings.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_core/juce_core.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_gui_basics/juce_gui_basics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_events/juce_events.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_opengl/juce_opengl.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_graphics/juce_graphics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_data_structures/juce_data_structures.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_devices/juce_audio_devices.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_basics/juce_audio_basics.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_utils/juce_audio_utils.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_formats/juce_audio_formats.cpp"
  "${PROJECT_SOURCE_DIR}/JUCE/modules/juce_audio_processors/juce_audio_processors.cpp"
  "${PROJECT_SOURCE_DIR}/sqlite/sqlite3.c")

install(TARGETS kiwano DESTINATION bin)
{'fraction_non_alphanumeric': 0.12437707641196014, 'fraction_numerical': 0.013704318936877076, 'mean_word_length': 9.381465517241379, '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': '293397', 'n_tokens_mistral': 2060, 'n_tokens_neox': 1976, 'n_words': 191}