mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 05:49:00 +08:00
a0b2767175
* 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
11 lines
467 B
Plaintext
11 lines
467 B
Plaintext
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})
|