aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt')
-rw-r--r--vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt b/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt
new file mode 100644
index 0000000..937c690
--- /dev/null
+++ b/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt
@@ -0,0 +1,24 @@
+cmake_minimum_required(VERSION 3.14)
+
+project(nayuki-qr-code-generator LANGUAGES CXX)
+
+include(GNUInstallDirs)
+
+add_library(nayuki-qr-code-generator qrcodegen.cpp)
+target_compile_features(nayuki-qr-code-generator PUBLIC cxx_std_11)
+target_include_directories(
+ nayuki-qr-code-generator
+ PUBLIC
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+)
+
+install(FILES qrcodegen.hpp DESTINATION include)
+
+install(TARGETS nayuki-qr-code-generator EXPORT unofficial-nayuki-qr-code-generator-config)
+
+install(
+ EXPORT unofficial-nayuki-qr-code-generator-config
+ NAMESPACE unofficial::nayuki-qr-code-generator::
+ DESTINATION share/unofficial-nayuki-qr-code-generator
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+)