mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-20 01:06:01 +08:00
Sync changes from upstream repository
This commit is contained in:
@@ -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})
|
||||
|
||||
@@ -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`
|
||||
Reference in New Issue
Block a user