Skip to content

Commit 82e4add

Browse files
author
Gin
committed
move SourceFiles.cmake into cmake/
1 parent 35d7858 commit 82e4add

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cmake_minimum_required(VERSION 3.18.0)
55
set(_cmake_files_to_watch
66
"${CMAKE_SOURCE_DIR}/CMakeLists.txt"
77
"${CMAKE_SOURCE_DIR}/CMakePresets.json"
8-
"${CMAKE_SOURCE_DIR}/SourceFiles.cmake"
98
)
109

1110
# Watch any helper .cmake files under cmake/
@@ -129,7 +128,7 @@ add_compile_definitions(QT_DISABLE_DEPRECATED_BEFORE=0x050F00)
129128
link_directories(${CMAKE_CURRENT_LIST_DIR})
130129

131130
# add the list of all code file paths as ${LIBRARY_SOURCES} and ${EXECUTABLE_SOURCES}
132-
include(SourceFiles.cmake)
131+
include(cmake/SourceFiles.cmake)
133132

134133
# Organize source files in IDE project view
135134
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR}/../../ FILES ${LIBRARY_SOURCES})

SerialPrograms/Scripts/add_new_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get_code_file_range(file_lines: List[str], starting_line: str, ending_line:
7474

7575

7676

77-
cmake_file_path = os.path.join(code_root_path, "SerialPrograms", "SourceFiles.cmake")
77+
cmake_file_path = os.path.join(code_root_path, "SerialPrograms", "cmake", "SourceFiles.cmake")
7878
print(f"SourceFiles.cmake path: {cmake_file_path}")
7979

8080
file_lines = read_lines(cmake_file_path)

0 commit comments

Comments
 (0)