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: A basic CMakeLists configuration to test Vector implementation ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################
## vector.cpp
#
cmake_minimum_required(VERSION 3.2)
cmake_minimum_required(VERSION 3.15)
# Define the project name
project(VectorDriver)

View File

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