-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
55 lines (34 loc) · 1.01 KB
/
CMakeLists.txt
File metadata and controls
55 lines (34 loc) · 1.01 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
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.14)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -I../inc")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -I../inc")
set(CURRENT_SOURCE_DIR src)
project(MathNodes)
include_directories(inc)
set(MATHNODELIB_SOURCES
${CURRENT_SOURCE_DIR}/MathNodes.cpp
${CURRENT_SOURCE_DIR}/parenthesize.c
${CURRENT_SOURCE_DIR}/MathTreeBuilder.cpp
)
add_library(libMathNodes STATIC ${MATHNODELIB_SOURCES})
add_executable(iparse
${CURRENT_SOURCE_DIR}/iparse.cpp
)
target_link_libraries(iparse libMathNodes)
target_include_directories(iparse PRIVATE inc)
add_executable(parse
${CURRENT_SOURCE_DIR}/parse.cpp
)
target_link_libraries(parse libMathNodes)
add_executable(MathNodesTest
../test/MathNodesTest.cpp
)
target_link_libraries(MathNodesTest libMathNodes)
#add_executable(parenthesize
# ../test/test_parenthesize.cpp
#)
#target_link_libraries(parenthesize libMathNodes)
add_executable(benchmark
../test/benchmark.cpp
)
target_link_libraries(benchmark libMathNodes)