-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
28 lines (19 loc) · 867 Bytes
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.15)
project(ExpressionParser)
option(BUILD_EXAMPLES "Build the provided examples")
option(BUILD_TESTS "Build the provided unit tests")
option(BUILD_AWS "Build the AWS Lambda project")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(ExpressionParser SHARED node.cpp operations.cpp functions.cpp matrix.cpp expression_parser.cpp complex_parser.cpp expression_composer.cpp equation_parser.cpp expression_simplifier.cpp expression_visualizer.cpp utils.cpp calculus.cpp)
set_target_properties(ExpressionParser PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED YES CXX_EXTENSIONS NO)
link_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR})
if (BUILD_EXAMPLES)
add_subdirectory(Examples)
endif()
if (BUILD_TESTS)
add_subdirectory(Test)
endif()
#if (${BUILD_AWS})
# add_subdirectory(AWS)
#endif()