/
CMakeLists.txt
52 lines (42 loc) · 2.28 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
47
48
49
50
51
52
# *************************************************************************************************
# Copyright (c) 2021 Calypso Networks Association *
# https://www.calypsonet-asso.org/ *
# *
# See the NOTICE file(s) distributed with this work for additional information regarding *
# copyright ownership. *
# *
# This program and the accompanying materials are made available under the terms of the Eclipse *
# Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
# *
# SPDX-License-Identifier: EPL-2.0 *
# *************************************************************************************************/
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
SET(CMAKE_LEGACY_CYGWIN_WIN32 0)
SET(CMAKE_CXX_STANDARD 11)
# Compilers
SET(CMAKE_C_COMPILER_WORKS 1)
SET(CMAKE_CXX_COMPILER_WORKS 1)
PROJECT(Project)
IF(NOT TOOLCHAIN_FILE)
MESSAGE(FATAL_ERROR "Toolchain file not specified")
ENDIF()
# Set common output directory
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# Versions
SET(CALYPSONET_VERSION main)
SET(KEYPLE_VERSION master)
# Includes
INCLUDE(cmake/calypsonet-terminal-calypso-cpp-api.cmake)
INCLUDE(cmake/calypsonet-terminal-card-cpp-api.cmake)
INCLUDE(cmake/calypsonet-terminal-reader-cpp-api.cmake)
INCLUDE(cmake/keyple-common-cpp-api.cmake)
INCLUDE(cmake/keyple-plugin-cpp-api.cmake)
INCLUDE(cmake/keyple-util-cpp-lib.cmake)
INCLUDE(cmake/keyple-plugin-pcsc-cpp-lib.cmake)
INCLUDE(cmake/keyple-plugin-stub-cpp-lib.cmake)
INCLUDE(cmake/keyple-service-cpp-lib.cmake)
INCLUDE(cmake/keyple-service-resource-cpp-lib.cmake)
INCLUDE(cmake/keyple-card-generic-cpp-lib.cmake)
INCLUDE(cmake/keyple-card-calypso-cpp-lib.cmake)
INCLUDE(cmake/keyple-cpp-example.cmake)