<commit_before>diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..b11903d
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,20 @@
+cmake_minimum_required(VERSION 2.8)
+set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
+project(ann)
+IF(APPLE)
+    # Fix linking on 10.14+. See https://stackoverflow.com/questions/54068035
+    LINK_DIRECTORIES(/usr/local/lib)
+ENDIF()
+if (MSVC)
+    add_definitions(-DANN_NO_RANDOM)
+ENDIF()
+
+add_definitions(-DDLL_EXPORTS)<commit_msg>Don't update LINK_DIRECTORIES directly on Mac OS<commit_after>diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..70dbf53
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.8)
+set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
+project(ann)
+if (MSVC)
+    add_definitions(-DANN_NO_RANDOM)
+ENDIF()
+
+add_definitions(-DDLL_EXPORTS)
{'fraction_non_alphanumeric': 0.1514476614699332, 'fraction_numerical': 0.06792873051224944, 'mean_word_length': 5.562043795620438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '7368093', 'n_tokens_mistral': 433, 'n_tokens_neox': 371, 'n_words': 62}