File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 75
75
"xstring" : " cpp" ,
76
76
"xtree" : " cpp"
77
77
},
78
+ "cmake.configureArgs" : [
79
+ " -DCPPSPEC_BUILD_TESTS=YES" ,
80
+ " -DCPPSPEC_BUILD_EXAMPLES=YES"
81
+ ],
78
82
"C_Cpp.intelliSenseEngine" : " disabled" ,
79
83
"C_Cpp.autocomplete" : " disabled" ,
80
84
"C_Cpp.errorSquiggles" : " disabled" ,
100
104
}
101
105
]
102
106
},
103
- }
107
+ }
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ function(discover_specs spec_folder)
64
64
endfunction (discover_specs )
65
65
66
66
# OPTIONS
67
- option (CPPSPEC_BUILD_TESTS "Build C++Spec tests" OFF )
68
- option (CPPSPEC_BUILD_EXAMPLES "Build C++Spec examples" OFF )
69
- option (CPPSPEC_BUILD_DOCS "Build C++Spec documentation" OFF )
67
+ option (CPPSPEC_BUILD_TESTS "Build C++Spec tests" )
68
+ option (CPPSPEC_BUILD_EXAMPLES "Build C++Spec examples" )
69
+ option (CPPSPEC_BUILD_DOCS "Build C++Spec documentation" )
70
70
71
71
if (CPPSPEC_BUILD_TESTS )
72
72
enable_testing ()
@@ -122,4 +122,4 @@ if(CPPSPEC_BUILD_DOCS)
122
122
"Doxygen needs to be installed to generate documentation."
123
123
"Please install from https://github.com/doxygen/doxygen/releases" )
124
124
endif (DOXYGEN_FOUND )
125
- endif (CPPSPEC_BUILD_DOCS )
125
+ endif (CPPSPEC_BUILD_DOCS )
Original file line number Diff line number Diff line change 45
45
: EXIT_FAILURE; \
46
46
}
47
47
48
+ #define CPPSPEC_SPEC (spec_name ) \
49
+ int spec_name_spec (int argc, char **argv) { \
50
+ return CppSpec::parse (argc, argv).add_spec (spec_name).exec () \
51
+ ? EXIT_SUCCESS \
52
+ : EXIT_FAILURE; \
53
+ }
54
+
48
55
#endif
49
56
/* >>>>>>>>>>>>>>>>>>> TYPEDEFS <<<<<<<<<<<<<<<<<<<<<*/
50
57
You can’t perform that action at this time.
0 commit comments