Repository navigation
Using license file of package
Ruslan Baratov edited this page Oct 6, 2015
·
1 revision
After package was installed Hunter will search for the license file in sources. Next priority is used (see script):
LICENSELICENSE.txtCOPYINGCOPYING.txtlicenselicense.txtcopyingcopying.txt
If nothing is found the last try is the files found by command file(GLOB ... "${package_source_dir}/LICENSE*").
In case search was successful variable <PACKAGE>_LICENSE can be used to obtain full path to the license (example):
hunter_add_package(Boost)
file(READ "${Boost_LICENSE}" boost_license_content)
set(project_license "${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt")
file(
WRITE
"${project_license}"
"Some info about this project license.\n\n"
"== 3rd party licenses ==\n\n"
"== Boost ==\n\n"
"${boost_license_content}"
)Feel free to open new issue if you want to ask any questions.
- HOME
- Packages
- Android-Apk
- Android-Modules
- Android-SDK
- ArrayFire
- Assimp
- Async++
- Avahi
- BZip2
- Boost
- Boost.compute
- Boost.process
- CLAPACK
- Comet
- CppNetlib.URI
- CsvParserCPlusPlus
- Eigen
- Expat
- GPUImage
- GSL
- GTest
- GMock
- Igloo
- IntSizeof
- Jpeg
- JsonSpirit
- LLVM (Clang)
- Leathers
- Libssh2
- Lua
- MySQL-client
- nlohmann::json
- OpenCV
- OpenSSL
- PNG
- Poco C++
- PostgreSQL
- Protobuf
- Qt
- Qt-Android-CMake
- QtQmlManager
- RapidJSON
- Sugar
- TIFF
- Washer
- WTL
- ZeroMQ
- ZMQPP
- ZLIB
- rabbitmq-c
- sparsehash
- ccv
- cereal
- convertutf
- crashpad
- cvmatio
- dest
- dlib
- eos
- flatbuffers
- fmt
- freetype
- glm
- glog
- half
- hdf5
- ios_sim
- irrXML
- libyuv
- log4cplus
- minizip
- odb-pgsql
- odb-mysql
- ogles_gpgpu
- openddlparser
- poly2tri
- polyclipping
- spdlog
- szip
- thread-pool-cpp
- tinydir
- websocketpp
- msgpack
- wxWidgets
- xgboost
Don't see packages you need? Feel free to leave a package request.