mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Added versioning
This commit is contained in:
		| @@ -26,6 +26,7 @@ | ||||
| #include "catch_expressionresult_builder.hpp" | ||||
| #include "catch_test_case_info.hpp" | ||||
| #include "catch_tags.hpp" | ||||
| #include "catch_version.hpp" | ||||
|  | ||||
| #include "../reporters/catch_reporter_basic.hpp" | ||||
| #include "../reporters/catch_reporter_xml.hpp" | ||||
|   | ||||
							
								
								
									
										24
									
								
								include/internal/catch_version.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								include/internal/catch_version.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| /* | ||||
|  *  Created by Phil on 13/11/2012. | ||||
|  *  Copyright 2012 Two Blue Cubes Ltd. All rights reserved. | ||||
|  * | ||||
|  *  Distributed under the Boost Software License, Version 1.0. (See accompanying | ||||
|  *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||||
|  */ | ||||
| #ifndef TWOBLUECUBES_CATCH_VERSION_H_INCLUDED | ||||
| #define TWOBLUECUBES_CATCH_VERSION_H_INCLUDED | ||||
|  | ||||
| namespace Catch { | ||||
|  | ||||
|     // Versioning information | ||||
|     struct Version { | ||||
|         const unsigned int MajorVersion; | ||||
|         const unsigned int MinorVersion; | ||||
|         const unsigned int BuildNumber; | ||||
|         const std::string BranchName; | ||||
|     }; | ||||
|  | ||||
|     extern Version libraryVersion; | ||||
| } | ||||
|  | ||||
| #endif // TWOBLUECUBES_CATCH_VERSION_H_INCLUDED | ||||
							
								
								
									
										19
									
								
								include/internal/catch_version.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								include/internal/catch_version.hpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| /* | ||||
|  *  Created by Phil on 14/11/2012. | ||||
|  *  Copyright 2012 Two Blue Cubes Ltd. All rights reserved. | ||||
|  * | ||||
|  *  Distributed under the Boost Software License, Version 1.0. (See accompanying | ||||
|  *  file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||||
|  */ | ||||
| #ifndef TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED | ||||
| #define TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED | ||||
|  | ||||
| #include "catch_version.h" | ||||
|  | ||||
| namespace Catch { | ||||
|  | ||||
|     // These numbers are maintained by a script | ||||
|     Version libraryVersion = { 0, 9, 1, "integration" }; | ||||
| } | ||||
|  | ||||
| #endif // TWOBLUECUBES_CATCH_VERSION_HPP_INCLUDED | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash