clang-format: ext4
[lwext4.git] / CMakeLists.txt
index 99de12e00bd3b3da527bfaa4e3410831d7c6b18c..bf75900f9fd50c4cb3e56fc6cbf7e88698d71a1e 100644 (file)
@@ -7,11 +7,6 @@ include_directories(blockdev/filedev)
 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
-\r
 #Examples\r
 if    (CMAKE_SYSTEM_PROCESSOR STREQUAL  cortex-m0)\r
     #cortex-m0 demos\r
@@ -32,6 +27,11 @@ 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
@@ -39,10 +39,15 @@ else()
     add_subdirectory(demos/generic)\r
 endif()\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 "4")\r
+set(CPACK_PACKAGE_VERSION_MINOR "7")\r
 set(CPACK_PACKAGE_VERSION_PATCH "0")\r
 set(CPACK_SOURCE_GENERATOR "TBZ2")\r
 set(CPACK_SOURCE_PACKAGE_FILE_NAME\r