<commit_before>cmake_minimum_required(VERSION 2.8)
Project ( evil )
set(
  SOURCES
	src/main.cpp
	src/application.cpp
	src/sprite.cpp
	src/sprite_batch.cpp
	src/texture.cpp
)
SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules/")
add_subdirectory( gtest )
add_subdirectory( vendor/jansson)

enable_testing()

find_package(OpenGL)
find_package(SDL2)
find_package(SDL2_image)
message(${SDL2_INCLUDE_DIR})
include_directories(${gtest_SOURCE_DIR}/include
	${gtest_SOURCE_DIR}
	${SDL2_INCLUDE_DIR}
	${SDL2_IMAGE_INCLUDE_DIRS}
	${jansson_BINARY_DIR}/include
	src)
# Compiler-specific C++11 activation.
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
    execute_process(
        COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
    if (NOT (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7))
        message(FATAL_ERROR "${PROJECT_NAME} requires g++ 4.7 or greater.")
				
    endif ()
		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall")
else ()
    message(FATAL_ERROR "Your C++ compiler does not support C++11.")
endif ()


add_library( evil STATIC
	${SOURCES} )

target_link_libraries( evil
  ${SDL2_LIBRARY}
	${SDL2_IMAGE_LIBRARY}
	${OPENGL_LIBRARY}
	jansson
	SDLmain
)

add_executable( test_app
	test_app/test_app.cpp
)

target_link_libraries( test_app evil)
add_executable(
  runUnitTests
	test/testgtest.cpp)
target_link_libraries(runUnitTests gtest gtest_main evil ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARY} ${OPENGL_LIBRARY})
add_test(runUnitTests runUnitTests)
<commit_msg>travis change<commit_after>cmake_minimum_required(VERSION 2.8)
Project ( evil )
set(
  SOURCES
	src/main.cpp
	src/application.cpp
	src/sprite.cpp
	src/sprite_batch.cpp
	src/texture.cpp
)
SET(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libc++")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/modules/")
add_subdirectory( gtest )
add_subdirectory( vendor/jansson)

enable_testing()

find_package(OpenGL)
find_package(SDL2)
find_package(SDL2_image)

if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux" )
	set( SDL_MAIN "SDL2main")
else()
	set( SDL_MAIN "SDLmain")
endif()

include_directories(${gtest_SOURCE_DIR}/include
	${gtest_SOURCE_DIR}
	${SDL2_INCLUDE_DIR}
	${SDL2_IMAGE_INCLUDE_DIRS}
	${jansson_BINARY_DIR}/include
	src)
# Compiler-specific C++11 activation.
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
    execute_process(
        COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
    if (NOT (GCC_VERSION VERSION_GREATER 4.7 OR GCC_VERSION VERSION_EQUAL 4.7))
        message(FATAL_ERROR "${PROJECT_NAME} requires g++ 4.7 or greater.")
				
    endif ()
		set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -stdlib=libc++ -Wall")
else ()
    message(FATAL_ERROR "Your C++ compiler does not support C++11.")
endif ()


add_library( evil STATIC
	${SOURCES} )

target_link_libraries( evil
  ${SDL2_LIBRARY}
	${SDL2_IMAGE_LIBRARY}
	${OPENGL_LIBRARY}
	jansson
	${SDL_MAIN}
)

add_executable( test_app
	test_app/test_app.cpp
)

target_link_libraries( test_app evil)
add_executable(
  runUnitTests
	test/testgtest.cpp)
target_link_libraries(runUnitTests gtest gtest_main evil ${SDL2_LIBRARY} ${SDL2IMAGE_LIBRARY} ${OPENGL_LIBRARY})
add_test(runUnitTests runUnitTests)

{'fraction_non_alphanumeric': 0.12036250354007363, 'fraction_numerical': 0.01416029453412631, 'mean_word_length': 6.40461215932914, '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': '1622620', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1376, 'n_words': 237}