-
Install cmake version 3.15 or later.
Make sure to choose one of the "Add CMake to the System PATH ..." options as shown below.
-
Install Visual Studio 2019.
-
Install git. For example: SourceTree
Start "Developer Command Prompt for VS 2019" and execute the following:
```
$ git clone https://github.com/unity3d-jp/StreamingImageSequence.git
$ cd StreamingImageSequence\Plugins~\Build
$ cmake -G "Visual Studio 16 2019" -A x64 ..
$ msbuild StreamingImageSequencePlugin.sln /t:Build /p:Configuration=Release /p:Platform=x64 /m /nologo
```
For a regular "Command Prompt", there is a script: VsDevCmd_2019.bat under the Build folder, which if executed, will turn the prompt into a "Developer Command Prompt for VS 2019".
- Install cmake version 3.15 or later, if not already installed.
- Install XCode.
- Install XCode Command Line tools.
xcode-select --install
- Install git. For example: SourceTree
Open a terminal and execute the following
$ git clone https://github.com/unity3d-jp/StreamingImageSequence.git
$ cd StreamingImageSequence/Plugins~/Build
$ cmake -GXcode ..
$ xcodebuild -scheme ALL_BUILD -configuration Release build
Open a terminal and execute the following
$ git clone https://github.com/unity3d-jp/StreamingImageSequence.git
$ cd StreamingImageSequence/Plugins~/Build
$ cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build .
- Download GoogleTest
- Start "Developer Command Prompt for VS 2019" as administrator
- Execute the following inside the GoogleTest source directory.
$ mkdir Build $ cd Build $ cmake .. $ msbuild googletest-distribution.sln /t:Build /p:Configuration=Debug /p:Platform=x64 /m /nologo $ msbuild googletest-distribution.sln /t:Build /p:Configuration=Release /p:Platform=x64 /m /nologo $ cmake -DBUILD_TYPE=Debug -P cmake_install.cmake $ cmake -DBUILD_TYPE=Release -P cmake_install.cmake
- Add GTEST_ROOT environment variable to point to where GoogleTest was installed.
- Go inside the plugin folder of StreamingImageSequence and execute the following:
$ cd StreamingImageSequence\Plugins~\Build $ cmake -G "Visual Studio 16 2019" -A x64 .. -DBUILD_UNIT_TESTS=ON $ msbuild StreamingImageSequencePlugin.sln /t:Build /p:Configuration=Release /p:Platform=x64 /m /nologo && ctest -C Release --verbose
- Download GoogleTest
- Open a terminal
- Execute the following inside the GoogleTest source directory.
$ mkdir Build $ cd Build $ cmake -GXcode .. $ xcodebuild -scheme ALL_BUILD -configuration Debug build $ xcodebuild -scheme ALL_BUILD -configuration Release build $ sudo cmake -DBUILD_TYPE=Debug -P cmake_install.cmake $ sudo cmake -DBUILD_TYPE=Release -P cmake_install.cmake
- Go inside the plugin folder of StreamingImageSequence and execute the following:
$ cd StreamingImageSequence\Plugins~\Build $ cmake -GXcode .. -DBUILD_UNIT_TESTS=ON $ xcodebuild -scheme ALL_BUILD -configuration Release build && ctest -C Release --verbose
- Open terminal
- Execute the following inside the GoogleTest source directory.
$ mkdir Build $ cd Build $ cmake .. && cmake --build . $ sudo cmake -DBUILD_TYPE=Debug -P cmake_install.cmake $ sudo cmake -DBUILD_TYPE=Release -P cmake_install.cmake
- Go inside the plugin folder of StreamingImageSequence and execute the following:
$ cd StreamingImageSequence\Plugins~\Build $ cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_UNIT_TESTS=ON $ cmake --build . && ctest -C Release --verbose