<commit_before>include_directories("${PROJECT_SOURCE_DIR}")
link_directories(${PROJECT_BINARY_DIR})

set(CORELIBS ${FREETYPE_LIBRARY} ${SQLITE3_LIBRARY} ${SDL2_LIBRARY} ${MRAA_LIBRARY} )
 
# configure a header file to pass some of the CMake settings
# to the source code
#configure_file (
#  "${PROJECT_SOURCE_DIR}/foneOS/FoneOSConfig.h.in"
#  "${PROJECT_BINARY_DIR}/foneOS/FoneOSConfig.h"
#  )
  
file(GLOB foneOS_src
    "*.h"
    "*.cpp"
    "*.hpp"
)

add_executable(foneOS ${foneOS_src})

target_link_libraries(foneOS
	PRIVATE "${SDL2_LIBRARY_RELEASE}"
	PRIVATE "${MRAA_LIBRARY_RELEASE}"
	PRIVATE "${SQLITE3_LIBRARY_RELEASE}"
	PRIVATE "${FREETYPE_LIBRARY_RELEASE}"
	PRIVATE "${LUAJIT_LIBRARY_RELEASE}"
)

include_directories("${SDL2_INCLUDE_DIR};${MRAA_INCLUDE_DIR};${SQLITE3_INCLUDE_DIR};${FREETYPE_INCLUDE_DIR};${LUAJIT_INCLUDE_DIR};")
# target_compile_options(foneOS "${SDL2_CFLAGS_OTHERS} ${SQLITE3_CFLAGS_OTHERS} ${FREETYPE_CFLAGS_OTHERS}")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

if (EDISON_BUILD)
file(RELATIVE_PATH relativeDir ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}/foneOS)
add_deployment_file(${relativeDir} ${deploymentFolderAbsolutPath})
endif(EDISON_BUILD)<commit_msg>Fix segfault on Mac<commit_after>include_directories("${PROJECT_SOURCE_DIR}")
link_directories(${PROJECT_BINARY_DIR})

set(CORELIBS ${FREETYPE_LIBRARY} ${SQLITE3_LIBRARY} ${SDL2_LIBRARY} ${MRAA_LIBRARY} )

# configure a header file to pass some of the CMake settings
# to the source code
#configure_file (
#	"${PROJECT_SOURCE_DIR}/foneOS/FoneOSConfig.h.in"
#	"${PROJECT_BINARY_DIR}/foneOS/FoneOSConfig.h"
#	)

file(GLOB foneOS_src
	"*.h"
	"*.cpp"
	"*.hpp"
)

add_executable(foneOS ${foneOS_src})

target_link_libraries(foneOS
	PRIVATE "${SDL2_LIBRARY_RELEASE}"
	PRIVATE "${MRAA_LIBRARY_RELEASE}"
	PRIVATE "${SQLITE3_LIBRARY_RELEASE}"
	PRIVATE "${FREETYPE_LIBRARY_RELEASE}"
	PRIVATE "${LUAJIT_LIBRARY_RELEASE}"
)

include_directories("${SDL2_INCLUDE_DIR};${MRAA_INCLUDE_DIR};${SQLITE3_INCLUDE_DIR};${FREETYPE_INCLUDE_DIR};${LUAJIT_INCLUDE_DIR};")
# target_compile_options(foneOS "${SDL2_CFLAGS_OTHERS} ${SQLITE3_CFLAGS_OTHERS} ${FREETYPE_CFLAGS_OTHERS}")

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
	# LuaJIT requires this on Mac OS X
	set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pagezero_size 10000 -image_base 100000000")
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")

if (EDISON_BUILD)
file(RELATIVE_PATH relativeDir ${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}/foneOS)
add_deployment_file(${relativeDir} ${deploymentFolderAbsolutPath})
endif(EDISON_BUILD)
{'fraction_non_alphanumeric': 0.13871951219512196, 'fraction_numerical': 0.012957317073170731, 'mean_word_length': 9.98326359832636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6304908', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1052, 'n_words': 141}