加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
Alexandre MUNSCH 提交于 2023-06-21 23:27 . Org: updated build system
# *************************************************************************************************
# Copyright (c) 2023 Calypso Networks Association https://calypsonet.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 *
# *************************************************************************************************/
PROJECT(KeypleCardGenericCppLib C CXX)
CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
SET(CMAKE_PROJECT_VERSION_MAJOR "2")
SET(CMAKE_PROJECT_VERSION_MINOR "0")
SET(CMAKE_PROJECT_VERSION_PATCH "4")
SET(CMAKE_PROJECT_VERSION "${CMAKE_PROJECT_VERSION_MAJOR}.
${CMAKE_PROJECT_VERSION_MINOR}.
${CMAKE_PROJECT_VERSION_PATCH}")
SET(PACKAGE_NAME "keyple-card-generic-cpp-lib")
SET(PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
SET(CMAKE_MACOSX_RPATH 1)
SET(CMAKE_CXX_STANDARD 11)
# Compilers
SET(CMAKE_C_COMPILER_WORKS 1)
SET(CMAKE_CXX_COMPILER_WORKS 1)
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)
# Add projects
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化