Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2024-03-13 09:41:56 -07:00
parent 19df200382
commit cf8984bb9a
47 changed files with 397 additions and 11738 deletions

View File

@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
project(ON_Test)
# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})

View File

@@ -2,19 +2,31 @@
This is a basic project to test OpenNURBS FileIO.
## Associated files
## prerequisites
- A compatible operating system (e.g. Linux, macOS, Windows).
- A compatible C++ compiler that supports at least C++14. These tests are set to use C++17.
- CMake (3.16 and above) and a compatible build tool for building the project. These will depend on the operating system. In general:
- macos: apple clang (usually installed via xcode)
- windows: MSVC (usually installed via Visual Studio)
- linux: gcc
## associated files
- rhino/src4/opennurbs/example_test/CMakeLists.txt
- rhino/src4/opennurbs/example_test/example_test.cpp
## building & running
From the example_test directory:
From the `src4/opennurbs/example_test` directory:
- `cmake -S . -B build`
- `cmake --build build`
- `cd build && ./example_test -r ../../example_files`
- run
- macos: `cd build && ./example_test -r ../../example_files`
- windows: `cd build/Debug && ./example_test -r ../../example_files`
## Notes
## notes
- This is a test that I will eventually convert to gtest
- Part of the functionality of this test has been converted to a GoogleTest in `src4/opennurbs/tests/fileio`