mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Fix compilation with VS2017
Enable OpenSubdiv by default for VS2019(CMakeSettings.json)
This commit is contained in:
@@ -15,6 +15,11 @@
|
|||||||
"name": "TINYUSDZ_USE_CCACHE",
|
"name": "TINYUSDZ_USE_CCACHE",
|
||||||
"value": "False",
|
"value": "False",
|
||||||
"type": "BOOL"
|
"type": "BOOL"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "TINYUSDZ_WITH_OPENSUBDIV",
|
||||||
|
"value": "True",
|
||||||
|
"type": "BOOL"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,7 +56,9 @@ Recomended way is simply copy `src` and `include` folder to your app, and add `*
|
|||||||
|
|
||||||
### CMake
|
### CMake
|
||||||
|
|
||||||
cmake build is still provided for CI build. Cmake project is not recommended for embedding TinyUSDZ to your app.
|
cmake build is still provided for CI build. `CMakeSettings.json` is provided for Visual Studio 2019.
|
||||||
|
|
||||||
|
Cmake project is not recommended for embedding TinyUSDZ to your app.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ mkdir build
|
$ mkdir build
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
#include <cctype> // std::tolower
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|||||||
4
vcsetup-2017.bat
Normal file
4
vcsetup-2017.bat
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
rmdir /s /q build
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
cmake -G "Visual Studio 15 2017" -A x64 -Bbuild -H.
|
||||||
Reference in New Issue
Block a user