diff options
author | Erwin Jansen <jansene@google.com> | 2018-11-21 16:09:40 -0800 |
---|---|---|
committer | Erwin Jansen <jansene@google.com> | 2018-11-27 10:24:19 -0800 |
commit | baf0508027872f50198e838fe1148b73a9b11b1f (patch) | |
tree | c1c350b5ec2b39c1c036e576968a003c84056028 /README.md | |
parent | 16661ba8c0103c2571e84a59a107c9e41dbe60dc (diff) |
CMake support to enable compilation under Visual Studio
- Add support for cmake
- Template fix to enable compilation with visual studio.
- Exclusion of static type tests under visual studio
- Fix unit tests due to declaration issues
Note we do not build the fuzzing target.
Test: All unit tests green on VS2017, MacOs, Linux
Change-Id: Ie8437f61d187fff03279c99fde0ff565e8f39b50
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -24,6 +24,8 @@ bool result = astc_codec::ASTCDecompressToRGBA( ## Building +### With bazel + Install [Bazel](https://bazel.build/), and then run: ``` @@ -32,12 +34,31 @@ bazel build :astc_codec -c opt astc-codec has been tested on Mac and Linux. -## Run Tests +### Run Tests ``` bazel test //... ``` +### With CMake + +Install [CMake](https://https://cmake.org/), and the run: + +``` +mkdir build && cd build && cmake .. && make +``` + +Or open the project in your favorite IDE and import CMakeLists.txt. + +### Run Tests + +In the build directory, execute: + +``` +ctest +``` + + ## Contributing See [CONTRIBUTING.md](CONTRIBUTING.md) for important contributing requirements. |