Merge pull request #4 from Sani7/bugfix/cmake-compiles-inc-folder

Remove the Core/inc folder from the CMake file list
This commit is contained in:
2023-11-06 15:10:42 +01:00
2 changed files with 6 additions and 2 deletions

View File

@@ -53,7 +53,9 @@ include_directories(LWIP/App LWIP/Target Core/Inc Middlewares/Third_Party/LwIP/s
add_definitions(-DDEBUG -DUSE_HAL_DRIVER -DSTM32F746xx)
file(GLOB_RECURSE SOURCES "Core/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
#file(GLOB_RECURSE SOURCES "Core/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
file(GLOB_RECURSE SOURCES "Core/Src/*.*" "Core/Startup/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
set(LINKER_SCRIPT ${CMAKE_SOURCE_DIR}/STM32F746NGHX_FLASH.ld)

View File

@@ -52,7 +52,9 @@ include_directories(${includes})
add_definitions(${defines})
file(GLOB_RECURSE SOURCES ${sources})
#file(GLOB_RECURSE SOURCES ${sources})
file(GLOB_RECURSE SOURCES "Core/Src/*.*" "Core/Startup/*.*" "LWIP/*.*" "Middlewares/*.*" "Drivers/*.*")
set(LINKER_SCRIPT $${CMAKE_SOURCE_DIR}/${linkerScript})