diff --git a/modules/CMakeLists.txt b/modules/CMakeLists.txt index 5c55ff643..d4643834c 100644 --- a/modules/CMakeLists.txt +++ b/modules/CMakeLists.txt @@ -1,12 +1,20 @@ # Include the modules that we'll build +# The list of modules is ordered so that each module occurs after any others +# that it depends on +set( MODULES + mod-script-pipe +) if( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) -add_subdirectory( mod-null ) -add_subdirectory( mod-nyq-bench ) + list( APPEND MODULES + mod-null + mod-nyq-bench + ) endif() -add_subdirectory( mod-script-pipe ) - +foreach( MODULE ${MODULES} ) + add_subdirectory("${MODULE}") +endforeach() if( NOT CMAKE_SYSTEM_NAME MATCHES "Darwin" ) if( NOT "${CMAKE_GENERATOR}" MATCHES "Visual Studio*")