<commit_before>cmake_minimum_required(VERSION 2.8)


include_directories(srcglfw3/include)
add_subdirectory(srcglfw3)
#add_library(glfw3 srcglfw3)
#set_property(TARGET glfw3 PROPERTY IMPORTED_LOCATION srcglfw3/src/libglfw3.a)

find_library(glfw3 PATHS srcglfw3/src)

add_executable(test maintest.c)
add_dependencies(test glfw3)

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    target_link_libraries(test glfw3 ${X11_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    FIND_LIBRARY(COCOA_LIBRARY Cocoa)
    FIND_LIBRARY(APPLICATION_SERVICES_LIBRARY ApplicationServices)
    FIND_LIBRARY(OGL_LIBRARY OpenGL)
    FIND_LIBRARY(AGL_LIBRARY AGL)
    FIND_LIBRARY(IOKIT IOKit)
    target_link_libraries(test glfw3 ${IOKIT} ${COCOA_LIBRARY} ${APPLICATION_SERVICES_LIBRARY} ${OGL_LIBRARY} ${AGL_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")<commit_msg>If glfw3 is build, then we can link it directly… how we do it automatically without depend on .travis.yml and only on cmake?<commit_after>cmake_minimum_required(VERSION 2.8)


include_directories(srcglfw3/include)
add_subdirectory(srcglfw3)
add_library(glfw3 srcglfw3)
set_property(TARGET glfw3 PROPERTY IMPORTED_LOCATION srcglfw3/src/libglfw3.a)


add_executable(test maintest.c)
add_dependencies(test glfw3)

if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    target_link_libraries(test glfw3 ${X11_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
    FIND_LIBRARY(COCOA_LIBRARY Cocoa)
    FIND_LIBRARY(APPLICATION_SERVICES_LIBRARY ApplicationServices)
    FIND_LIBRARY(OGL_LIBRARY OpenGL)
    FIND_LIBRARY(AGL_LIBRARY AGL)
    FIND_LIBRARY(IOKIT IOKit)
    target_link_libraries(test glfw3 ${IOKIT} ${COCOA_LIBRARY} ${APPLICATION_SERVICES_LIBRARY} ${OGL_LIBRARY} ${AGL_LIBRARY})
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
{'fraction_non_alphanumeric': 0.09431939978563773, 'fraction_numerical': 0.016613076098606645, 'mean_word_length': 8.288557213930348, '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': '452409', 'n_tokens_mistral': 810, 'n_tokens_neox': 727, 'n_words': 118}