Skip to content

Commit 46d4191

Browse files
committed
feat: update CMakeLists.txt to include header files in the SOURCE_FILES variable
1 parent 92a2e57 commit 46d4191

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
@@ -4,7 +4,7 @@ project(git-starter-cpp)
44

55
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
66

7-
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
7+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
88

99
add_executable(server ${SOURCE_FILES})
1010

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(git-starter-cpp)
44

55
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
66

7-
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
7+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
88

99
add_executable(server ${SOURCE_FILES})
1010

starter_templates/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(git-starter-cpp)
44

55
set(CMAKE_CXX_STANDARD 23) # Enable the C++23 standard
66

7-
file(GLOB_RECURSE SOURCE_FILES src/*.cpp)
7+
file(GLOB_RECURSE SOURCE_FILES src/*.cpp src/*.hpp)
88

99
add_executable(server ${SOURCE_FILES})
1010

0 commit comments

Comments
 (0)