-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved the logic into a single CMakeLists.txt file * Added miniocpp:: namespace and thus miniocpp::miniocpp target * Removed the generation of header files (config.h.in) * Consolidated tests and examples - use MINIO_CPP_TEST to build them all * Use miniocpp::miniocpp target in tests and exampels to simplify the use of dependencies * Setup the cmake project with DESCRIPTION and VERSION * Use GNUInstallDirs when installing targets * Export cmake files so another cmake can find minio-cpp by using find_package(miniocpp) and then use miniocpp::miniocpp * Building both documentation and tests/examples is OFF by default
- Loading branch information
Showing
9 changed files
with
227 additions
and
370 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
BUILD_OPTIONS="-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" | ||
|
||
if [ -n "$VCPKG_ROOT" ]; then | ||
BUILD_OPTIONS="${BUILD_OPTIONS} -DCMAKE_TOOLCHAIN_FILE=${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" | ||
fi | ||
|
||
echo "== [Configuring Build - Debug] ==" | ||
eval cmake . -B build/Debug -DCMAKE_BUILD_TYPE=Debug ${BUILD_OPTIONS} "$@" | ||
echo "" | ||
|
||
echo "== [Configuring Build - Release] ==" | ||
eval cmake . -B build/Release -DCMAKE_BUILD_TYPE=Release ${BUILD_OPTIONS} "$@" | ||
echo "" |
Oops, something went wrong.