From f3be3256447da1da0b490cedaf81612ea4fc16ea Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 9 Jun 2019 14:02:41 -0700 Subject: [PATCH] Add a CMakeLists file. --- CMakeLists.txt | 6 ++++++ src/parser.cpp | 1 + 2 files changed, 7 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..fe44a89 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,6 @@ +cmake_minimum_required(VERSION 3.0) +project(lily) + +set(CMAKE_CXX_STANDARD 14) +add_executable(lily src/main.cpp src/parser.cpp src/parser.c) +target_include_directories(lily PUBLIC src) diff --git a/src/parser.cpp b/src/parser.cpp index 7223edd..97bbfe9 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3,6 +3,7 @@ extern "C" { } #include "parser.hpp" #include "pattern.hpp" +#include namespace lily { std::string tree_str(pgs_tree* tree, const char* source) {