Skip to content

Commit

Permalink
Configure CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Jun 18, 2023
1 parent 0c7d9fd commit 4684dc7
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
cmake_minimum_required(VERSION 3.26)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

project(
ForFun
LANGUAGES CXX
)

include_directories (
${CMAKE_SOURCE_DIR}/include
)

add_executable(
"fizzbuzz"
"include/forfun/fizzbuzz.hpp"
"src/fizzbuzz.cpp"
"test/fizzbuzz.cpp"
)

add_executable(
"lc-lru-cache"
"include/forfun/lc-lru-cache.hpp"
"src/lc-lru-cache.cpp"
"test/lc-lru-cache.cpp"
)

add_executable(
"palindrome"
"include/forfun/palindrome.hpp"
"src/palindrome.cpp"
"test/palindrome.cpp"
)

add_executable(
"palindromic-number"
"include/forfun/palindromic-number.hpp"
"src/palindromic-number.cpp"
"test/palindromic-number.cpp"
)

add_executable(
"project-euler-p0001-multiples-of-3-or-5"
"include/forfun/project-euler/p0001-multiples-of-3-or-5.hpp"
"src/project-euler/p0001-multiples-of-3-or-5.cpp"
"test/project-euler/p0001-multiples-of-3-or-5.cpp"
)

add_executable(
"sonar"
"include/forfun/sonar.hpp"
"src/sonar.cpp"
"test/sonar.cpp"
)

0 comments on commit 4684dc7

Please sign in to comment.