<commit_before># CxxSwizzle
# Copyright (c) 2013, <NAME> <gwiazdorrr+github at gmail.com>

find_package(SDL REQUIRED)
find_package(SDL_image)
find_package(OpenMP)

# this will look in the local cmake directory only if Vc hasn't been built/installed locally

if(MSVC)
	# hint to use supplied, patched build
	find_package(Vc CONFIG PATHS "${CMAKE_SOURCE_DIR}/external/cmake")
else()
	# regular search
	find_package(Vc)
endif()

if(SDL_FOUND AND SDL_IMAGE_FOUND)

	if (OPENMP_FOUND)
		set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -DOMP_ENABLED=1")
	else()
		set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -DOMP_ENABLED=0")
	endif()
	
	# get all the shaders
	file(GLOB shaders RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/shaders/*.frag")

	source_group("" FILES main.cpp use_scalar.h use_simd.h use_simd_masked.h )
	source_group("shaders" FILES ${shaders})
	
	add_executable (sample_scalar main.cpp use_scalar.h ${shaders})
	include_directories(${SDL_INCLUDE_DIR} ${CxxSwizzle_SOURCE_DIR}/include)
	target_link_libraries (sample_scalar ${SDL_LIBRARY})

	if(SDLIMAGE_FOUND)
		include_directories(${SDL_IMAGE_INCLUDE_DIR})
		target_link_libraries (sample_scalar ${SDL_IMAGE_LIBRARY})
		set_target_properties(sample_scalar PROPERTIES COMPILE_FLAGS "-DUSE_SCALAR -DSDLIMAGE_FOUND")
	else()<commit_msg>Ok, SDL_image is now *really* optional.<commit_after># CxxSwizzle
# Copyright (c) 2013, <NAME> <gwiazdorrr+github at gmail.com>

find_package(SDL REQUIRED)
find_package(SDL_image)
find_package(OpenMP)

# this will look in the local cmake directory only if Vc hasn't been built/installed locally

if(MSVC)
	# hint to use supplied, patched build
	find_package(Vc CONFIG PATHS "${CMAKE_SOURCE_DIR}/external/cmake")
else()
	# regular search
	find_package(Vc)
endif()

if(SDL_FOUND)

	if (OPENMP_FOUND)
		set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -DOMP_ENABLED=1")
	else()
		set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS} -DOMP_ENABLED=0")
	endif()
	
	# get all the shaders
	file(GLOB shaders RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/shaders/*.frag")

	source_group("" FILES main.cpp use_scalar.h use_simd.h use_simd_masked.h )
	source_group("shaders" FILES ${shaders})
	
	add_executable (sample_scalar main.cpp use_scalar.h ${shaders})
	include_directories(${SDL_INCLUDE_DIR} ${CxxSwizzle_SOURCE_DIR}/include)
	target_link_libraries (sample_scalar ${SDL_LIBRARY})

	if(SDLIMAGE_FOUND)
		include_directories(${SDL_IMAGE_INCLUDE_DIR})
		target_link_libraries (sample_scalar ${SDL_IMAGE_LIBRARY})
		set_target_properties(sample_scalar PROPERTIES COMPILE_FLAGS "-DUSE_SCALAR -DSDLIMAGE_FOUND")
	else()
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.0044444444444444444, 'mean_word_length': 7.310769230769231, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '315399', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1005, 'n_words': 202}