modules/CMakeLists.txt iterates topologically sorted list of modules

This commit is contained in:
Paul Licameli 2020-11-14 13:02:24 -05:00
parent 97c4a3835d
commit 592518c157
1 changed files with 12 additions and 4 deletions

View File

@ -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*")