<commit_before>cmake_minimum_required(VERSION 2.8.7)
project(exlauncher C CXX)

add_definitions(-std=c++11)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

include(FindSDL2 REQUIRED)

find_library(SDL2_TTF SDL2_ttf)
find_library(SDL2_IMAGE SDL2_image)
find_library(SDL2_MIXER SDL2_mixer)

if (NOT SDL2_TTF)
	message(SEND_ERROR "SDL2_ttf is required to build this software.")
endif()
if (NOT SDL2_IMAGE)
	message(SEND_ERROR "SDL2_image is required to build this software.")
endif()
if (NOT SDL2_MIXER)
	message(SEND_ERROR "SDL2_mixer is required to build this software.")
endif()

set(CPPFILES
	ExLauncher/ResourceManager.cpp
	ExLauncher/graphics_utils.cpp
	ExLauncher/main.cpp
	ExLauncher/App.cpp
	ExLauncher/DataStore.cpp
	ExLauncher/Screens/ScreenAppLaunch.cpp
	ExLauncher/Screens/ScreenTest.cpp
	ExLauncher/Screens/ScreenMenu.cpp
	ExLauncher/Screens/ScreenError.cpp
	ExLauncher/Screens/ScreenProgressDialog.cpp
	ExLauncher/Screens/ScreenMessageDialog.cpp
	ExLauncher/Screens/ScreenSystemDialog.cpp
	ExLauncher/Screens/ScreenBackgroundImage.cpp
	ExLauncher/Screens/ScreenSystemInfo.cpp
	ExLauncher/Screens/ScreenShutdown.cpp
	ExLauncher/Screens/ScreenSettingsSelectTheme.cpp
	ExLauncher/utils.cpp
	ExLauncher/Animator.cpp
	ExLauncher/Theme.cpp
	ExLauncher/ThemeManager.cpp
	ExLauncher/Views/Image.cpp
	ExLauncher/Views/LinearPanel.cpp
	ExLauncher/Views/ListView.cpp
	ExLauncher/Views/State.cpp
	ExLauncher/Views/TabStrip.cpp
	ExLauncher/Views/FramePanel.cpp
	ExLauncher/Views/Label.cpp
	ExLauncher/Views/GridView.cpp
	ExLauncher/Views/Selector.cpp
	ExLauncher/Views/TabPanel.cpp
	ExLauncher/Views/RecentAppView.cpp
	ExLauncher/Views/RectangleShape.cpp
	ExLauncher/Xml.cpp
	ExLauncher/structures.cpp
	ExLauncher/ViewSystem/CollectionView.cpp
	ExLauncher/ViewSystem/ScrollView.cpp
	ExLauncher/ViewSystem/View.cpp
	ExLauncher/ViewSystem/LayoutHelper.cpp
	ExLauncher/AppManager.cpp
	ExLauncher/HomeDirectory.cpp
	ExLauncher/ScreenSystem/ScreenManager.cpp
	ExLauncher/ScreenSystem/Screen.cpp
	ExLauncher/ScreenSystem/InputState.cpp
)

include_directories(${PROJECT_NAME} ${SDL2_INCLUDE_DIR})

add_executable(${PROJECT_NAME} ${CPPFILES})

target_link_libraries(${PROJECT_NAME}
	${SDL2_LIBRARY}
	${SDL2_IMAGE}
	${SDL2_TTF}
	${SDL2_MIXER}
)<commit_msg>CMake: Enable C++11, the official way<commit_after>cmake_minimum_required(VERSION 2.8.7)
project(exlauncher C CXX)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

include(FindSDL2 REQUIRED)

find_library(SDL2_TTF SDL2_ttf)
find_library(SDL2_IMAGE SDL2_image)
find_library(SDL2_MIXER SDL2_mixer)

if (NOT SDL2_TTF)
	message(SEND_ERROR "SDL2_ttf is required to build this software.")
endif()
if (NOT SDL2_IMAGE)
	message(SEND_ERROR "SDL2_image is required to build this software.")
endif()
if (NOT SDL2_MIXER)
	message(SEND_ERROR "SDL2_mixer is required to build this software.")
endif()

set(CPPFILES
	ExLauncher/ResourceManager.cpp
	ExLauncher/graphics_utils.cpp
	ExLauncher/main.cpp
	ExLauncher/App.cpp
	ExLauncher/DataStore.cpp
	ExLauncher/Screens/ScreenAppLaunch.cpp
	ExLauncher/Screens/ScreenTest.cpp
	ExLauncher/Screens/ScreenMenu.cpp
	ExLauncher/Screens/ScreenError.cpp
	ExLauncher/Screens/ScreenProgressDialog.cpp
	ExLauncher/Screens/ScreenMessageDialog.cpp
	ExLauncher/Screens/ScreenSystemDialog.cpp
	ExLauncher/Screens/ScreenBackgroundImage.cpp
	ExLauncher/Screens/ScreenSystemInfo.cpp
	ExLauncher/Screens/ScreenShutdown.cpp
	ExLauncher/Screens/ScreenSettingsSelectTheme.cpp
	ExLauncher/utils.cpp
	ExLauncher/Animator.cpp
	ExLauncher/Theme.cpp
	ExLauncher/ThemeManager.cpp
	ExLauncher/Views/Image.cpp
	ExLauncher/Views/LinearPanel.cpp
	ExLauncher/Views/ListView.cpp
	ExLauncher/Views/State.cpp
	ExLauncher/Views/TabStrip.cpp
	ExLauncher/Views/FramePanel.cpp
	ExLauncher/Views/Label.cpp
	ExLauncher/Views/GridView.cpp
	ExLauncher/Views/Selector.cpp
	ExLauncher/Views/TabPanel.cpp
	ExLauncher/Views/RecentAppView.cpp
	ExLauncher/Views/RectangleShape.cpp
	ExLauncher/Xml.cpp
	ExLauncher/structures.cpp
	ExLauncher/ViewSystem/CollectionView.cpp
	ExLauncher/ViewSystem/ScrollView.cpp
	ExLauncher/ViewSystem/View.cpp
	ExLauncher/ViewSystem/LayoutHelper.cpp
	ExLauncher/AppManager.cpp
	ExLauncher/HomeDirectory.cpp
	ExLauncher/ScreenSystem/ScreenManager.cpp
	ExLauncher/ScreenSystem/Screen.cpp
	ExLauncher/ScreenSystem/InputState.cpp
)

include_directories(${PROJECT_NAME} ${SDL2_INCLUDE_DIR})

add_executable(${PROJECT_NAME} ${CPPFILES})

target_link_libraries(${PROJECT_NAME}
	${SDL2_LIBRARY}
	${SDL2_IMAGE}
	${SDL2_TTF}
	${SDL2_MIXER}
)

set_target_properties(${PROJECT_NAME} PROPERTIES
		CXX_STANDARD 11
		CXX_STANDARD_REQUIRED ON
		CXX_EXTENSIONS OFF
)
{'fraction_non_alphanumeric': 0.0904359141184125, 'fraction_numerical': 0.01040988939492518, 'mean_word_length': 6.751260504201681, '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': '3773533', 'n_tokens_mistral': 1803, 'n_tokens_neox': 1701, 'n_words': 222}