Add CMakeLists for algorithms subdirectories

This commit is contained in:
Shaun Reed 2021-05-04 23:07:39 -04:00
parent e585f18359
commit 8646cd51ea
5 changed files with 47 additions and 1 deletions

View File

@ -17,6 +17,7 @@ project(
LANGUAGES CXX LANGUAGES CXX
) )
add_subdirectory(algorithms)
add_subdirectory(cmake) add_subdirectory(cmake)
add_subdirectory(datastructs) add_subdirectory(datastructs)
add_subdirectory(sdl-cmake) add_subdirectory(sdl-cmake)

View File

@ -0,0 +1,17 @@
###############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
## About: A root project for practicing algorithms in C++ ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################
#
cmake_minimum_required(VERSION 3.15)
project (
#[[NAME]] Algorithms
VERSION 1.0
DESCRIPTION "A project for practicing various algorithms in C++"
LANGUAGES CXX
)
add_subdirectory(sorting)

View File

@ -0,0 +1,12 @@
###############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2021 Shaun Reed, all rights reserved ##
## About: A root project for practicing sorting algorithms in C++ ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################
#
cmake_minimum_required(VERSION 3.15)
add_subdirectory(selection)

View File

@ -0,0 +1,16 @@
###############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2020 Shaun Reed, all rights reserved ##
## About: A basic CMakeLists configuration to practice merge sort ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
###############################################################################
cmake_minimum_required(VERSION 3.17)
project(MergeSort LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_executable(merge-sort "merge-sort.cpp")
add_library(lib-merge "lib-merge.cpp")
target_link_libraries(merge-sort lib-merge)

View File

@ -6,7 +6,7 @@
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ## ## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
############################################################################### ###############################################################################
cmake_minimum_required(VERSION 3.17) cmake_minimum_required(VERSION 3.16)
project(SelectionSort LANGUAGES CXX) project(SelectionSort LANGUAGES CXX)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)