mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-12 15:16:50 +01:00
42 lines
1.5 KiB
CMake
42 lines
1.5 KiB
CMake
#*******************************************************************************
|
|
# Copyright (c) 2017 IBM Corp.
|
|
#
|
|
# All rights reserved. This program and the accompanying materials
|
|
# are made available under the terms of the Eclipse Public License v1.0
|
|
# and Eclipse Distribution License v1.0 which accompany this distribution.
|
|
#
|
|
# The Eclipse Public License is available at
|
|
# http://www.eclipse.org/legal/epl-v10.html
|
|
# and the Eclipse Distribution License is available at
|
|
# http://www.eclipse.org/org/documents/edl-v10.php.
|
|
#
|
|
# Contributors:
|
|
# Ian Craggs - initial version
|
|
#*******************************************************************************/
|
|
|
|
CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
|
|
PROJECT("paho-mqttsn" CXX)
|
|
MESSAGE(STATUS "CMake version: " ${CMAKE_VERSION})
|
|
MESSAGE(STATUS "CMake system name: " ${CMAKE_SYSTEM_NAME})
|
|
|
|
SET(CMAKE_SCRIPTS "${CMAKE_SOURCE_DIR}/cmake")
|
|
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
|
|
|
|
## build settings
|
|
SET(PAHO_VERSION_MAJOR 1)
|
|
SET(PAHO_VERSION_MINOR 0)
|
|
SET(PAHO_VERSION_PATCH 0)
|
|
SET(CLIENT_VERSION ${PAHO_VERSION_MAJOR}.${PAHO_VERSION_MINOR}.${PAHO_VERSION_PATCH})
|
|
|
|
STRING(TIMESTAMP BUILD_TIMESTAMP UTC)
|
|
MESSAGE(STATUS "Timestamp is ${BUILD_TIMESTAMP}")
|
|
|
|
SET(CPACK_PACKAGE_VERSION_MAJOR ${PAHO_VERSION_MAJOR})
|
|
SET(CPACK_PACKAGE_VERSION_MINOR ${PAHO_VERSION_MINOR})
|
|
SET(CPACK_PACKAGE_VERSION_PATCH ${PAHO_VERSION_PATCH})
|
|
INCLUDE(CPack)
|
|
|
|
ENABLE_TESTING()
|
|
|
|
ADD_SUBDIRECTORY(MQTTSNPacket)
|
|
ADD_SUBDIRECTORY(MQTTSNGateway) |