Add CMakeLists for algorithms subdirectories
This commit is contained in:
parent
e585f18359
commit
8646cd51ea
|
@ -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)
|
||||||
|
|
|
@ -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)
|
|
@ -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)
|
|
@ -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)
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue