36 lines
613 B
CMake
36 lines
613 B
CMake
cmake_minimum_required(VERSION 3.10)
|
|
project(mix_cc_matheval VERSION 0.1)
|
|
|
|
include(../../cmake_include/public.cmake)
|
|
|
|
|
|
add_library(mix_cc_matheval
|
|
ast_adapted.hpp
|
|
ast.hpp
|
|
evaluator.cpp
|
|
evaluator.hpp
|
|
matheval.cpp
|
|
math.hpp
|
|
parser.cpp
|
|
parser_def.hpp
|
|
parser.hpp
|
|
)
|
|
|
|
target_include_directories(mix_cc_matheval
|
|
PUBLIC ./
|
|
${my_lib_include}
|
|
)
|
|
|
|
target_compile_features(mix_cc_matheval
|
|
PUBLIC cxx_std_20
|
|
)
|
|
|
|
find_package(Boost REQUIRED)
|
|
|
|
target_link_libraries(mix_cc_matheval
|
|
PRIVATE Boost::boost
|
|
)
|
|
|
|
set_target_properties(mix_cc_matheval PROPERTIES ARCHIVE_OUTPUT_DIRECTORY
|
|
${my_lib})
|