From 213bc5c35d728edb288b47da2ad5a51cc05d2585 Mon Sep 17 00:00:00 2001 From: Dev Date: Mon, 28 Jan 2019 01:09:14 -0500 Subject: [PATCH] add cmake for easier compilation --- CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f7e9d41 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,19 @@ +cmake_minimum_required(VERSION 2.8) + +project(TestChain) + +set(CMAKE_CXX_COMPILER "g++") + +set(CMAKE_CXX_FLAGS "-Wall -std=c++11") + + +set(TESTCHAIN_SOURCES + Blockchain.cpp + Block.cpp + main.cpp + sha256.cpp) + +include_directories(./) + +add_executable(TestChain ${TESTCHAIN_SOURCES}) +