cmake_minimum_required(VERSION 2.6)

project(miniMAT)

# C++11, all warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")

# Check for Eigen
#find_package(Eigen3 REQUIRED)
#include_directories(${EIGEN3_INCLUDE_DIR})

include_directories(src/miniMAT/lexer)
#include_directories(src/miniMAT/parser)
include_directories(src/miniMAT/ast)

set(SOURCES src/miniMAT/miniMAT.cpp

			src/miniMAT/lexer/Lexer.cpp
			src/miniMAT/lexer/Token.cpp
			src/miniMAT/lexer/TokenKind.cpp

			#src/miniMAT/parser/Parser.cpp

			src/miniMAT/ast/BinaryExpr.cpp
			src/miniMAT/ast/ExprStmt.cpp
			src/miniMAT/ast/FloatLiteral.cpp
			src/miniMAT/ast/LiteralExpr.cpp
			src/miniMAT/ast/Operator.cpp
			src/miniMAT/ast/ScalarType.cpp
			src/miniMAT/ast/Terminal.cpp
			src/miniMAT/ast/Type.cpp
			src/miniMAT/ast/UnaryExpr.cpp
	)

add_executable(miniMAT ${SOURCES})

cmake_minimum_required(VERSION 2.6)

project(miniMAT)

# C++14, all warnings
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -Wall")

# Check for Eigen
#find_package(Eigen3 REQUIRED)
#include_directories(${EIGEN3_INCLUDE_DIR})

include_directories(src/miniMAT/lexer)
include_directories(src/miniMAT/parser)
include_directories(src/miniMAT/ast)

set(SOURCES src/miniMAT/miniMAT.cpp

			src/miniMAT/lexer/Lexer.cpp
			src/miniMAT/lexer/Token.cpp
			src/miniMAT/lexer/TokenKind.cpp

			src/miniMAT/parser/Parser.cpp

			src/miniMAT/ast/BinaryExpr.cpp
			src/miniMAT/ast/ExprStmt.cpp
			src/miniMAT/ast/FloatLiteral.cpp
			src/miniMAT/ast/LiteralExpr.cpp
			src/miniMAT/ast/Operator.cpp
			src/miniMAT/ast/ScalarType.cpp
			src/miniMAT/ast/Terminal.cpp
			src/miniMAT/ast/Type.cpp
			src/miniMAT/ast/UnaryExpr.cpp
	)

add_executable(miniMAT ${SOURCES})

Change to C++14 (for now)
Change to C++14 (for now)
