mirror of
				https://github.com/jhasse/poly2tri.git
				synced 2025-10-30 20:17:10 +01:00 
			
		
		
		
	Fix, clarify build instructions
If we're in a build subdirectory, we need `..` to tell cmake where to find the source directory.
This commit is contained in:
		
							
								
								
									
										14
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								README.md
									
									
									
									
									
								
							| @@ -38,28 +38,32 @@ Testbed: | ||||
| Build the library | ||||
| ----------------- | ||||
|  | ||||
| With the ninja build system installed: | ||||
|  | ||||
| ``` | ||||
| mkdir build && cd build | ||||
| cmake -GNinja | ||||
| cmake -GNinja .. | ||||
| cmake --build . | ||||
| ``` | ||||
|  | ||||
| Build and run the unit tests | ||||
| Build and run with unit tests | ||||
| ---------------------------- | ||||
|  | ||||
| With the ninja build system: | ||||
|  | ||||
| ``` | ||||
| mkdir build && cd build | ||||
| cmake -GNinja -DP2T_BUILD_TESTS=ON | ||||
| cmake -GNinja -DP2T_BUILD_TESTS=ON .. | ||||
| cmake --build . | ||||
| ctest --output-on-failure | ||||
| ``` | ||||
|  | ||||
| Build the testbed | ||||
| Build with the testbed | ||||
| ----------------- | ||||
|  | ||||
| ``` | ||||
| mkdir build && cd build | ||||
| cmake -GNinja -DP2T_BUILD_TESTBED=ON | ||||
| cmake -GNinja -DP2T_BUILD_TESTBED=ON .. | ||||
| cmake --build . | ||||
| ``` | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Roy Stogner
					Roy Stogner