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,18 +1,17 @@
###############################################################################
## 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)
# Define source files
set(SRC driver.cpp)
# Build an executable
add_executable(VectorDriver ${SRC})
add_executable(TemplatedVectorDriver ${SRC})

View File

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