Updates to gitignore, src/CMakeLists.txt and readme, per Han Zhu's requests

Removed the * from *.DS_Store in .gitignore

Removed ${WARNINGS} from the non-apple clause in src/CMakeLists.txt making it
equivalent to the non-apple behavior before this branch.

Updated README.md with instructions for building unit tests as the CMake module
for finding libunittest++ works now.
This commit is contained in:
Guy Sherman 2016-06-17 08:28:44 +01:00
Родитель 7f5b468bb5
Коммит 00d7e0257d
3 изменённых файлов: 18 добавлений и 3 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -187,4 +187,4 @@ Microsoft.WindowsAzure.Storage/build.*/
# OSX detritus
# ==========================
*.DS_Store
.DS_Store

Просмотреть файл

@ -58,7 +58,7 @@ endif()
if (APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${WARNINGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
endif()
add_library(${AZURESTORAGE_LIBRARY} ${SOURCES})

Просмотреть файл

@ -193,7 +193,22 @@ CASABLANCA_DIR=~/Github/Casablanca/cpprestsdk cmake .. -DCMAKE_BUILD_TYPE=Releas
```
The library is generated under `azure-storage-cpp/Microsoft.WindowsAzure.Storage/build.release/Binaries/`.
*As yet the unit tests don't build, because cmake won't find UnitTest++ even though it is installed via Homebrew*
To build and run unit tests:
- Install UnitTest++ library:
```bash
brew install unittest-cpp
```
- Build the test code:
```bash
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=ON
make
```
- Run unit tests
```bash
cd Binaries
vi test_configurations.json # modify test config file to include your storage account credentials
./azurestoragetest
```
# Learn More
- [Microsoft Azure Storage Client Library for C++ v2.0.0](documentation/Microsoft%20Azure%20Storage%20Client%20Library%20for%20C%2B%2B%202.0.0.md)