Thomas Buck пре 10 година
родитељ
комит
943792a0c9
1 измењених фајлова са 30 додато и 1 уклоњено
  1. 30
    1
      CMakeLists.txt

+ 30
- 1
CMakeLists.txt Прегледај датотеку

@@ -23,9 +23,11 @@ set (CMAKE_BUILD_TYPE "Debug")
23 23
 add_subdirectory (src)
24 24
 add_subdirectory (test)
25 25
 
26
+#################################################################
27
+
26 28
 # Preparing the bundle on install
27 29
 # http://www.cmake.org/Wiki/BundleUtilitiesExample
28
-# Why does it even work?
30
+# Why does it even work? O.o
29 31
 if (APPLE)
30 32
     set (plugin_dest_dir OpenRaider.app/Contents/MacOS)
31 33
     set (APPS "${PROJECT_BINARY_DIR}/src/OpenRaider.app")
@@ -38,3 +40,30 @@ if (APPLE)
38 40
         " COMPONENT Runtime
39 41
     )
40 42
 endif (APPLE)
43
+
44
+#################################################################
45
+
46
+# Target for running cppcheck
47
+set (CHECK_STD "--std=c++11" "--std=posix")
48
+set (CHECK_FLAGS "--quiet" "--force")
49
+set (CHECK_NORMAL "--enable=information,warning,performance,portability")
50
+set (CHECK_FULL "--enable=all")
51
+set (CHECK_CONFIG "--check-config")
52
+add_custom_target (check echo "Running cppcheck..."
53
+    COMMAND cppcheck ${CHECK_FLAGS} "-I${PROJECT_SOURCE_DIR}/include" ${CHECK_STD} ${CHECK_NORMAL} ${PROJECT_SOURCE_DIR}
54
+)
55
+add_custom_target (checkFull echo "Running full cppcheck..."
56
+    COMMAND cppcheck ${CHECK_FLAGS} "-I${PROJECT_SOURCE_DIR}/include" ${CHECK_STD} ${CHECK_FULL} ${PROJECT_SOURCE_DIR}
57
+)
58
+add_custom_target (checkConfig echo "Checking cppcheck config..."
59
+    COMMAND cppcheck ${CHECK_FLAGS} "-I${PROJECT_SOURCE_DIR}/include" ${CHECK_CONFIG} ${PROJECT_SOURCE_DIR}
60
+)
61
+
62
+#################################################################
63
+
64
+#docLocal:
65
+#	sed -i '' 's/HAVE_DOT               = YES/HAVE_DOT               = NO/g' Doxyfile
66
+#	doxygen
67
+#	cp -R doc/html/* ../apache/
68
+#	rm -rf doc
69
+#	sed -i '' 's/HAVE_DOT               = NO/HAVE_DOT               = YES/g' Doxyfile

Loading…
Откажи
Сачувај