forked from nayuki/QR-Code-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (35 loc) · 1.72 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
############################################################################
# Ekaitza Gazte Taldea #
# C\ Renteria Nº3 Bajo #
# 20110, Trintxerpe #
# SPAIN #
# #
# Copyright (c) 2020 by Erik Fustes #
# All rights reserved. #
# Erik Fustes provides this product without warranty of any kind and shall #
# not be liable for any damages caused by the use of this product. #
############################################################################
# Find the dependencies of this project
cmake_minimum_required(VERSION 3.17)
# Set the name of the library
set(LIBRARY_NAME QrCode)
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# Define the header and source files of the library
set(HEADER_FILES
include/QrCode.hpp
include/QrCodeLib.h
)
set(SOURCE_FILES
src/QrCode.cpp
src/QrCodeLib.cpp
)
source_group("Sources" FILES ${SOURCE_FILES})
# Define the folder containing the header files for this library
set(QRCODE_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
# Define the include directory search file for this project
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include )
# Add the library
add_library(${LIBRARY_NAME} SHARED ${SOURCE_FILES} ${HEADER_FILES})
set_target_properties(${LIBRARY_NAME} PROPERTIES FOLDER "Utilities")
set(QRCODE_INCLUDED ON PARENT_SCOPE)