cmake_minimum_required(VERSION 2.8) find_package(Java REQUIRED) include(UseJava) project(Lox NONE) add_jar(Lox com/craftinginterpreters/lox/Lox.java com/craftinginterpreters/lox/TokenType.java com/craftinginterpreters/lox/Token.java com/craftinginterpreters/lox/Expr.java com/craftinginterpreters/lox/AstPrinter.java ENTRY_POINT com/craftinginterpreters/lox/Lox) add_jar(GenerateAst com/craftinginterpreters/tool/GenerateAst.java ENTRY_POINT com/craftinginterpreters/tool/GenerateAst)