mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 05:07:49 +08:00
25 lines
753 B
CMake
25 lines
753 B
CMake
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/nayuki-qr-code-generator
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
|
)
|