From 8b9b7f669ff86f8a4011dc5f6a7d3cf6e6f4302b Mon Sep 17 00:00:00 2001 From: falsycat Date: Sat, 19 Nov 2022 17:09:46 +0900 Subject: [PATCH] add new thirdparty lib, ExprTk --- CMakeLists.txt | 2 ++ thirdparty/CMakeLists.txt | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bf311e..be53fdf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,11 +162,13 @@ target_sources(nf7 file/system_nfile.cc file/system_node.cc file/value_curve.cc + file/value_expr.cc file/value_imm.cc file/value_plot.cc ) target_link_libraries(nf7 PRIVATE + exprtk freetype glew glfw diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index ef655e3..43dda72 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -10,8 +10,22 @@ else() endif() +# ---- ExprTk ---- +# repository: https://github.com/ArashPartow/exprtk +# license : MIT + +FetchContent_Declare( + exprtk + URL "https://github.com/ArashPartow/exprtk/archive/refs/tags/0.0.1.zip" +) +FetchContent_Populate(exprtk) + +add_library(exprtk INTERFACE) +target_include_directories(exprtk SYSTEM INTERFACE "${exprtk_SOURCE_DIR}") + + # ---- FreeType ---- -# repository: +# repository: https://gitlab.freedesktop.org/freetype/freetype # license : The FreeType License FetchContent_Declare(