diff options
| author | Anatoly Shirokov <anatoly.shirokov@gmail.com> | 2017-12-21 10:37:02 +0300 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-12-20 23:37:02 -0800 |
| commit | a0b2767175c20dc446c22a9ce30ed1874d72acdf (patch) | |
| tree | 949e386ab7cb0c35808e09addb40cdd0e501f8d6 /ports/libqrencode/usage | |
| parent | d4b1d19912e919be3516e444331428916e1ff9f0 (diff) | |
| download | vcpkg-a0b2767175c20dc446c22a9ce30ed1874d72acdf.tar.gz vcpkg-a0b2767175c20dc446c22a9ce30ed1874d72acdf.zip | |
Added port libqrencode - a fast and compact QR Code encoding library (#2372)
* https://github.com/Microsoft/vcpkg/issues/2363
* libqrencode: Added necessary new line at end of CONTROL, portfile.cmake, usage files. Added copying the usage file in portfile.cmake, and removed unnecessary DBUILD_SHARED_LIBS as remarked @ras0219-msft
* [libqrencode] Adjust usage to match other packages
Diffstat (limited to 'ports/libqrencode/usage')
| -rw-r--r-- | ports/libqrencode/usage | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ports/libqrencode/usage b/ports/libqrencode/usage new file mode 100644 index 000000000..f6003f4e3 --- /dev/null +++ b/ports/libqrencode/usage @@ -0,0 +1,10 @@ +To use libqrencode library in CMakeLists.txt: + + find_path(QRENCODE_INCLUDE_DIR NAMES qrencode.h) + find_library(QRENCODE_LIBRARY_RELEASE qrencode) + find_library(QRENCODE_LIBRARY_DEBUG qrencoded) + set(QRENCODE_LIBRARIES optimized ${QRENCODE_LIBRARY_RELEASE} debug ${QRENCODE_LIBRARY_DEBUG}) + + add_executable(main main.cpp) + target_include_directories(main PRIVATE ${QRENCODE_INCLUDE_DIR}) + target_link_libraries(main PRIVATE ${QRENCODE_LIBRARIES}) |
