Commit 9c0e39c5 authored by adrien-matta's avatar adrien-matta
Browse files

* New folder structure in nps

  - All detector are now in the Detectors folder
parent f4a4bc7c
......@@ -86,21 +86,14 @@ set(CMAKE_INCLUDE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/include )
# A macro that return the list of directory to compile
MACRO(subdirlist result curdir)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
FILE(GLOB children RELATIVE ${curdir} ${curdir}/Detectors/*)
SET(dirlist "")
FOREACH(child ${children})
IF(IS_DIRECTORY ${curdir}/${child})
string(COMPARE EQUAL "${child}" ".tmp" r0)
string(COMPARE EQUAL "${child}" "lib" r1)
string(COMPARE EQUAL "${child}" "scripts" r2)
string(COMPARE EQUAL "${child}" "CMakeFiles" r3)
string(COMPARE EQUAL "${child}" "Core" r4)
string(COMPARE EQUAL "${child}" "bin" r5)
string(COMPARE EQUAL "${child}" "macro" r6)
string(COMPARE EQUAL "${child}" "icons" r7)
IF(NOT r0 AND NOT r1 AND NOT r2 AND NOT r3 AND NOT r4 AND NOT r5 AND NOT r6 AND NOT r7)
string(COMPARE EQUAL "${DETLIST}" "" r100)
IF(r100)
IF(NOT r0 )
string(COMPARE EQUAL "${DETLIST}" "" r1)
IF(r1)
LIST(APPEND dirlist ${child})
ELSEIF(${DETLIST} MATCHES ".*${child}.*" )
LIST(APPEND dirlist ${child})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment