C++ Mathematical Expression Library (ExprTk) https://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow
2024-01-01 00:00:00 +00:00
parent 806c519c91
commit 9369b0f817
29 changed files with 1929 additions and 58325 deletions

52
CMakeLists.txt Normal file
View File

@ -0,0 +1,52 @@
#
# ******************************************************************
# * C++ Mathematical Expression Toolkit Library *
# * *
# * Author: Arash Partow (1999-2022) *
# * URL: https://www.partow.net/programming/exprtk/index.html *
# * *
# * Copyright notice: *
# * Free use of the C++ Mathematical Expression Toolkit Library is *
# * permitted under the guidelines and in accordance with the most *
# * current version of the MIT License. *
# * https://www.opensource.org/licenses/MIT *
# * SPDX-License-Identifier: MIT *
# * *
# ******************************************************************
#
cmake_minimum_required(VERSION 3.15)
project(
ExprTk
LANGUAGES CXX
VERSION 0.0.1
DESCRIPTION "C++ Mathematical Expression Toolkit Library (ExprTk)"
HOMEPAGE_URL "https://www.partow.net/programming/exprtk/index.html"
)
# define ExprTk header-only library
add_library(
exprtk
INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/include/exprtk.hpp
)
add_library(exprtk::exprtk ALIAS exprtk)
target_include_directories(
exprtk
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
target_compile_features(exprtk INTERFACE cxx_std_11)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
"ExprTkConfigVersion.cmake"
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)