Skip to content

Commit bafc812

Browse files
committed
Logging to see if GLOB_RECURSE is working correctly
1 parent c12d30b commit bafc812

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

source/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ file(GLOB_RECURSE SRC_FILES "*.cpp")
77
add_library(reminecraftpe-core STATIC
88
${SRC_FILES}
99
)
10-
message(STATUS "Selected Directories: ${SRC_FILES}")
10+
set(COUNT 0)
11+
foreach(file IN LISTS SRC_FILES)
12+
math(EXPR COUNT "${COUNT} + 1")
13+
file(RELATIVE_PATH rel_file ${CMAKE_CURRENT_SOURCE_DIR} ${file})
14+
message(STATUS "[${COUNT}] ${rel_file}")
15+
endforeach()
16+
1117
target_include_directories(reminecraftpe-core PUBLIC . ..)
1218

1319
# RakNet

0 commit comments

Comments
 (0)