From 3405b0c1635843cbb81f042364bfcf238d7dc930 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Thu, 5 May 2016 14:59:28 +0200 Subject: Adds the current code. It's been running for close to a month on one of the IRC channels I frequent and seems to be working fine. One should be aware that, among other missing features, this version does not store permanently what the bot learns. Indeed, I am currently using a file with 431848 lines as its initial knowledge bank, making this particular feature not a high priority one. Also consider the fact that Zero of One converts text to underscore before reading it but will not change its own aliases. This could potentially be a cause for surprises when using uppercase letters in the latter. --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..ba70690 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 2.8 FATAL_ERROR) + +project("Zero of One") + +include(FindPkgConfig) + +add_subdirectory(src) +set(CMAKE_C_FLAGS "-D_POSIX_SOURCE -std=c99 -O2") +# ${SRC_FILES} is recursively defined in the subdirectories. +# Each subdirectory only adds the source files that are present at its level. +add_executable(zero_of_one ${SRC_FILES}) -- cgit v1.2.3-70-g09d2