-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
41 lines (32 loc) · 1.53 KB
/
CMakeLists.txt
File metadata and controls
41 lines (32 loc) · 1.53 KB
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
# *****************************************************************************
# Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
# *
# This program and the accompanying materials are made available under the *
# terms of the MIT License which is available at *
# https://opensource.org/licenses/MIT. *
# *
# SPDX-License-Identifier: MIT *
# *****************************************************************************/
CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
PROJECT(KeypopReaderCppApi
VERSION 2.0.0
LANGUAGES C CXX)
SET(PACKAGE_NAME "keypop-reader-cpp-api")
SET(PACKAGE_VERSION ${CMAKE_PROJECT_VERSION})
SET(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
SET(CMAKE_MACOSX_RPATH 1)
SET(CMAKE_CXX_STANDARD 11)
# Generate compile_commands.json file used by clang-tidy
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# 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}/include)
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/src)