modules/CMakeLists.txt iterates topologically sorted list of modules
This commit is contained in:
parent
97c4a3835d
commit
592518c157
|
@ -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*")
|
||||
|
|
Loading…
Reference in New Issue