Add cmake project files for cpp/ directory and all relevant subdirecctories

+ Add Makefiles generated by CMake JIC make is preferred
+ Update cmake version, header comments, and project descriptions
This commit is contained in:
2021-04-27 23:42:12 -04:00
parent d4f6fb9d41
commit 8817a594be
39 changed files with 264 additions and 302 deletions

View File

@@ -1,14 +1,13 @@
###############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2020 Shaun Reed, all rights reserved ##
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
## About: An example of a stack implementation using linked lists ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################
## CMakeLists.txt
#
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.15)
# Define the project name
project(Stack)

View File

@@ -1,23 +0,0 @@
CXX=g++
CXXFLAGS=-g -Wall
###############################################################################
# Driver
###############################################################################
driver: driver.cpp stacklist.o
${CXX} ${CXXFLAGS} driver.cpp stacklist.o -o driver
###############################################################################
# StackList
###############################################################################
stacklist.o: stacklist.cpp stacklist.h
${CXX} ${CXXFLAGS} -c stacklist.cpp -o stacklist.o
###############################################################################
# Clean
###############################################################################
clean:
rm -f *.o driver