Skip to content

Commit

Permalink
CMakeLists.txt clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
SewerynKaminski committed Dec 10, 2024
1 parent de4ba0c commit 769236c
Show file tree
Hide file tree
Showing 20 changed files with 106 additions and 90 deletions.
82 changes: 7 additions & 75 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,80 +22,12 @@ add_custom_target(AoC SOURCES README.md)
# INSTALL_COMMAND ""
#)

#===============================================================================
set(YEAR 2018)
addday(01)
addday(02)
addday(03)
addday(04)

#===============================================================================
set(YEAR 2021)
addday(01)
addday(02)
addday(03)
addday(04)
addday(05)
addday(06)
addday(07)
addday(08)
addday(09)
addday(10)
addday(11)
#addday(12)
#addday(13)
#addday(14)
#addday(15)
#addday(16)
#addday(17)
#addday(18)
#addday(19)
#addday(20)
#addday(21)
#addday(22)
#addday(23)
#addday(24)
#addday(25)

#===============================================================================
set(YEAR 2022)
addday(1)
addday(2)
addday(3)
addday(4)
addday(5)
addday(6)
addday(7)
addday(8)
addday(9)
addday(10)
addday(11)
addday(12)
addday(13)
addday(14)
addday(15)
#addday(16)
#addday(17)
addday(18)
#addday(19)
#addday(20)
#addday(21)
#addday(22)

#===============================================================================
set(YEAR 2023)

#===============================================================================
set(YEAR 2024)
addday(01)
addday(02)
addday(03)
addday(04)
addday(05)
addday(06)
addday(07)
addday(08)
addday(09)
addday(10)
add_subdirectory( year2018 )
#add_subdirectory( year2019 )
#add_subdirectory( year2020 )
add_subdirectory( year2021 )
add_subdirectory( year2022 )
#add_subdirectory( year2023 )
add_subdirectory( year2024 )

#===============================================================================
28 changes: 28 additions & 0 deletions year2018/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2018)

add_subdirectory(day01)
add_subdirectory(day02)
add_subdirectory(day03)
add_subdirectory(day04)
#add_subdirectory(day05)
#add_subdirectory(day06)
#add_subdirectory(day07)
#add_subdirectory(day08)
#add_subdirectory(day09)
#add_subdirectory(day10)
#add_subdirectory(day11)
#add_subdirectory(day12)
#add_subdirectory(day13)
#add_subdirectory(day14)
#add_subdirectory(day15)
#add_subdirectory(day16)
#add_subdirectory(day17)
#add_subdirectory(day18)
#add_subdirectory(day19)
#add_subdirectory(day20)
#add_subdirectory(day21)
#add_subdirectory(day22)
#add_subdirectory(day23)
#add_subdirectory(day24)
1 change: 0 additions & 1 deletion year2018/day01/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2018)
set(DAY 01)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2018/day02/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2018)
set(DAY 02)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2018/day03/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2018)
set(DAY 03)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2018/day04/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2018)
set(DAY 04)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
28 changes: 28 additions & 0 deletions year2021/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2021)

add_subdirectory(day01)
add_subdirectory(day02)
add_subdirectory(day03)
add_subdirectory(day04)
add_subdirectory(day05)
add_subdirectory(day06)
add_subdirectory(day07)
add_subdirectory(day08)
add_subdirectory(day09)
add_subdirectory(day10)
add_subdirectory(day11)
#add_subdirectory(day12)
#add_subdirectory(day13)
#add_subdirectory(day14)
#add_subdirectory(day15)
#add_subdirectory(day16)
#add_subdirectory(day17)
#add_subdirectory(day18)
#add_subdirectory(day19)
#add_subdirectory(day20)
#add_subdirectory(day21)
#add_subdirectory(day22)
#add_subdirectory(day23)
#add_subdirectory(day24)
28 changes: 28 additions & 0 deletions year2022/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2022)

add_subdirectory(day1)
add_subdirectory(day2)
add_subdirectory(day3)
add_subdirectory(day4)
add_subdirectory(day5)
add_subdirectory(day6)
add_subdirectory(day7)
add_subdirectory(day8)
add_subdirectory(day9)
add_subdirectory(day10)
add_subdirectory(day11)
add_subdirectory(day12)
add_subdirectory(day13)
add_subdirectory(day14)
add_subdirectory(day15)
#add_subdirectory(day16)
#add_subdirectory(day17)
add_subdirectory(day18)
#add_subdirectory(day19)
#add_subdirectory(day20)
#add_subdirectory(day21)
#add_subdirectory(day22)
#add_subdirectory(day23)
#add_subdirectory(day24)
2 changes: 1 addition & 1 deletion year2022/day1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)

set(YEAR 2022)

set(DAY 1)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
14 changes: 14 additions & 0 deletions year2024/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2024)

add_subdirectory(day01)
add_subdirectory(day02)
add_subdirectory(day03)
add_subdirectory(day04)
add_subdirectory(day05)
add_subdirectory(day06)
add_subdirectory(day07)
add_subdirectory(day08)
add_subdirectory(day09)
add_subdirectory(day10)
1 change: 0 additions & 1 deletion year2024/day01/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.27)

set(YEAR 2024)
set(DAY 01)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day02/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 02)

project( "${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day03/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 03)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day04/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 04)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day05/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 05)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day06/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 06)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day07/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 07)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day08/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 08)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day09/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 09)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down
1 change: 0 additions & 1 deletion year2024/day10/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
cmake_minimum_required(VERSION 3.29)

set(YEAR 2024)
set(DAY 10)

project("${YEAR} Day ${DAY}" LANGUAGES CXX)
Expand Down

0 comments on commit 769236c

Please sign in to comment.