From d4bee7cf08bb2b28eeb29284705501abd513bc47 Mon Sep 17 00:00:00 2001 From: Ruslan Kovtun Date: Sat, 23 Mar 2019 10:23:35 +0200 Subject: [PATCH] Adds CMakeLists.txt for cpp version It is good to have CMake compatibility. Demos can be build without it, but it will improve usability because with CMakeFiles.txt you just have to specify library path and link library, e.g. ``` add_subdirecory(libs/QR-Code-generator/cpp) ... target_link_libraries(binary qrcodegen) ``` --- cpp/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 cpp/CMakeLists.txt diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt new file mode 100644 index 0000000..3580a15 --- /dev/null +++ b/cpp/CMakeLists.txt @@ -0,0 +1,7 @@ +project(libqrcodegen) + +add_library(qrcodegen STATIC + BitBuffer.cpp QrSegment.cpp QrCode.cpp) + +target_include_directories(qrcodegen PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR})