Skip to content

Commit 0448481

Browse files
authored
Merge pull request #76 from codecrafters-io/CC-1236
CC-1236: Use GLOB_RECURSE in CMakeLists.txt for cpp repos
2 parents 3e45762 + e1289ec commit 0448481

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

compiled_starters/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 3.13)
22
project(sqlite-starter-cpp)
33
set(CMAKE_CXX_STANDARD 20) # Enable the C++20 standard
44

5-
set(SOURCE_FILES src/Server.cpp)
5+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
66

77
add_executable(server ${SOURCE_FILES})

solutions/cpp/01-dr6/code/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 3.13)
22
project(sqlite-starter-cpp)
33
set(CMAKE_CXX_STANDARD 20) # Enable the C++20 standard
44

5-
set(SOURCE_FILES src/Server.cpp)
5+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
66

77
add_executable(server ${SOURCE_FILES})

starter_templates/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 3.13)
22
project(sqlite-starter-cpp)
33
set(CMAKE_CXX_STANDARD 20) # Enable the C++20 standard
44

5-
set(SOURCE_FILES src/Server.cpp)
5+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
66

77
add_executable(server ${SOURCE_FILES})

0 commit comments

Comments
 (0)