compiles and works

This commit is contained in:
François Dausseur
2025-02-18 11:36:18 +01:00
parent b66e82da87
commit 5dfe5b123e
17 changed files with 7087 additions and 2021 deletions

View File

@@ -4,11 +4,13 @@ project(BoundaryScanExplorer)
# script and jtag_core must be the last linked archive for the application to compile
set(BS_MODULES script jtag_core)
set(DIR_MODULES ${CMAKE_SOURCE_DIR}/modules)
set(DIR_LIBS ${CMAKE_SOURCE_DIR}/libs)
# We dive into submodules
file(GLOB MODULES_DIRS RELATIVE ${CMAKE_SOURCE_DIR}/modules ${CMAKE_SOURCE_DIR}/modules/*)
file(GLOB MODULES_DIRS RELATIVE ${DIR_MODULES} ${DIR_MODULES}/*)
foreach(module ${MODULES_DIRS})
set(module_path "${CMAKE_SOURCE_DIR}/modules/${module}")
set(module_path "${DIR_MODULES}/${module}")
# checks if it is a sub-directory and if it contains a cmake file
if(IS_DIRECTORY ${module_path} AND EXISTS "${module_path}/CMakeLists.txt")