2015-08-03 17:59:07 +02:00
|
|
|
include( CMakeColors )
|
|
|
|
|
2014-07-14 16:26:10 +02:00
|
|
|
file( GLOB SUBDIRECTORIES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*" )
|
2015-08-03 17:59:07 +02:00
|
|
|
string( REPLACE " " ";" SKIP_LIST "${SKIP_MODULES}" )
|
2014-07-14 16:26:10 +02:00
|
|
|
foreach( SUBDIRECTORY ${SUBDIRECTORIES} )
|
2015-08-03 17:59:07 +02:00
|
|
|
list( FIND SKIP_LIST ${SUBDIRECTORY} DO_SKIP )
|
|
|
|
|
|
|
|
if( NOT DO_SKIP EQUAL -1 )
|
|
|
|
message( "${ColorReset}-- Skipping module ${BoldRed}${SUBDIRECTORY}${ColorReset}." )
|
|
|
|
message( "" )
|
|
|
|
elseif( ( IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/${SUBDIRECTORY}" ) AND
|
|
|
|
( DO_SKIP EQUAL -1 ) )
|
2014-07-14 16:26:10 +02:00
|
|
|
calamares_add_module_subdirectory( ${SUBDIRECTORY} )
|
2014-06-11 13:37:10 +02:00
|
|
|
endif()
|
|
|
|
endforeach()
|