ext4_fs.c: code indentation.
[lwext4.git] / CMakeLists.txt
index f9663b7a258c072f602e4f212eba6e4dddd46534..1ae2c5ba34aa1d563e3a5af576dc8d21ca57cede 100644 (file)
@@ -6,11 +6,7 @@ include_directories(lwext4)
 include_directories(blockdev/filedev)\r
 include_directories(blockdev/filedev_win)\r
 \r
-\r
-#Library build\r
-add_subdirectory(lwext4)\r
-#Detect all possible warnings for lwext4 target\r
-set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic")\r
+set(BLOCKDEV_TYPE  none)\r
 \r
 #Examples\r
 if    (CMAKE_SYSTEM_PROCESSOR STREQUAL  cortex-m0)\r
@@ -32,17 +28,29 @@ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  bf518)
 elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  avrxmega7)\r
     #avrxmega7 demos\r
     #...\r
+elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL  msp430g2210)\r
+    add_definitions(-DCONFIG_DEBUG_PRINTF=0)\r
+    add_definitions(-DCONFIG_DEBUG_ASSERT=0)\r
+    #msp430f6459 demos\r
+    #...\r
 else()\r
     #Generic example target\r
-    add_subdirectory(blockdev)\r
+    set(BLOCKDEV_TYPE  linux)\r
     add_subdirectory(fs_test)\r
     add_subdirectory(demos/generic)\r
 endif()\r
 \r
+add_subdirectory(blockdev)\r
+\r
+#Library build\r
+add_subdirectory(lwext4)\r
+#Detect all possible warnings for lwext4 target\r
+set_target_properties(lwext4 PROPERTIES COMPILE_FLAGS "-Wall -Wextra -pedantic")\r
+\r
 \r
 #DISTRIBUTION\r
 set(CPACK_PACKAGE_VERSION_MAJOR "0")\r
-set(CPACK_PACKAGE_VERSION_MINOR "5")\r
+set(CPACK_PACKAGE_VERSION_MINOR "8")\r
 set(CPACK_PACKAGE_VERSION_PATCH "0")\r
 set(CPACK_SOURCE_GENERATOR "TBZ2")\r
 set(CPACK_SOURCE_PACKAGE_FILE_NAME\r