compiles and works
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user