diff options
| author | gkostka <kostka.grzegorz@gmail.com> | 2015-09-21 22:58:46 +0200 |
|---|---|---|
| committer | gkostka <kostka.grzegorz@gmail.com> | 2015-09-22 00:19:51 +0200 |
| commit | 107a9ee9b40fc55a65e84c755b5433e7ad465332 (patch) | |
| tree | 65cc931a30c2de6cdb5c5855dae252d9c8099376 /blockdev/CMakeLists.txt | |
| parent | fd69372547ede31874302ac2921abb7e3b34a60c (diff) | |
Demo apps refactoring
Diffstat (limited to 'blockdev/CMakeLists.txt')
| -rw-r--r-- | blockdev/CMakeLists.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/blockdev/CMakeLists.txt b/blockdev/CMakeLists.txt index 0f1f20b..2099d50 100644 --- a/blockdev/CMakeLists.txt +++ b/blockdev/CMakeLists.txt @@ -1,5 +1,15 @@ #Blockdev library
-aux_source_directory(filedev BLOCKDEV_SRC)
-aux_source_directory(filedev_win BLOCKDEV_SRC)
+
+if (BLOCKDEV_TYPE STREQUAL linux)
+aux_source_directory(linux BLOCKDEV_SRC)
+elseif (BLOCKDEV_TYPE STREQUAL windows)
+aux_source_directory(windows BLOCKDEV_SRC)
+elseif (BLOCKDEV_TYPE STREQUAL chibios)
+aux_source_directory(chibios BLOCKDEV_SRC)
+else()
+endif()
+
+aux_source_directory(. BLOCKDEV_SRC)
+
add_library(blockdev ${BLOCKDEV_SRC})
|
