Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

[issue 234] Added directories for the new code distribution #310

Merged
merged 1 commit into from
Feb 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/stable/drivers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
list_subdirectories( LIST_DRIVERS ${CMAKE_CURRENT_SOURCE_DIR} 1)

IF(NOT DEFINED build-default)
SET(build-default ON)
ENDIF(NOT DEFINED build-default)

FOREACH (driver ${LIST_DRIVERS})
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${driver}/CMakeLists.txt)
option(build_${driver} "Build driver ${driver}" ${build-default})
IF(build_${driver})
MESSAGE(STATUS "Processing driver ${driver}")
ADD_SUBDIRECTORY (${driver})
ENDIF(build_${driver})
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${driver}/CMakeLists.txt)
ENDFOREACH()

16 changes: 16 additions & 0 deletions src/stable/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
list_subdirectories( LIST_TOOLS ${CMAKE_CURRENT_SOURCE_DIR} 1)

IF(NOT DEFINED build-default)
SET(build-default ON)
ENDIF(NOT DEFINED build-default)

FOREACH (tool ${LIST_TOOLS})
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${tool}/CMakeLists.txt)
option(build_${tool} "Build tool ${tool}" ${build-default})
IF(build_${tool})
MESSAGE(STATUS "Processing tool ${tool}")
ADD_SUBDIRECTORY (${tool})
ENDIF(build_${tool})
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${tool}/CMakeLists.txt)
ENDFOREACH()