-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
11 lines (9 loc) · 2.09 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
cmake_minimum_required(VERSION 3.13)
project(ParseTree)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_FLAGS "-O3")
find_package(dictionary REQUIRED)
add_library(ParseTree src/EvaluationMetrics/ModifiedParsevalMetric.cpp src/EvaluationMetrics/ModifiedParsevalMetric.h src/EvaluationMetrics/ParsevalMetric.cpp src/EvaluationMetrics/ParsevalMetric.h src/EvaluationMetrics/ModifiedLeafAncestorMetric.cpp src/EvaluationMetrics/ModifiedLeafAncestorMetric.h src/EvaluationMetrics/LeafAncestorMetric.cpp src/EvaluationMetrics/LeafAncestorMetric.h src/EvaluationMetrics/Metric.h src/SearchDirectionType.h src/Symbol.cpp src/Symbol.h src/ParseNode.cpp src/ParseNode.h src/ParseTree.cpp src/ParseTree.h src/NodeCondition/NodeCondition.h src/NodeCondition/IsLeaf.cpp src/NodeCondition/IsLeaf.h src/NodeCondition/IsEnglishLeaf.cpp src/NodeCondition/IsEnglishLeaf.h src/NodeCollector.cpp src/NodeCollector.h src/TreeBank.cpp src/TreeBank.h src/ConstituentSpan.cpp src/ConstituentSpan.h src/ParallelTreeBank.cpp src/ParallelTreeBank.h)
target_link_libraries(ParseTree dictionary::dictionary)
add_executable(Test src/EvaluationMetrics/ModifiedParsevalMetric.cpp src/EvaluationMetrics/ModifiedParsevalMetric.h src/EvaluationMetrics/ParsevalMetric.cpp src/EvaluationMetrics/ParsevalMetric.h src/EvaluationMetrics/ModifiedLeafAncestorMetric.cpp src/EvaluationMetrics/ModifiedLeafAncestorMetric.h src/EvaluationMetrics/LeafAncestorMetric.cpp src/EvaluationMetrics/LeafAncestorMetric.h src/EvaluationMetrics/Metric.h src/SearchDirectionType.h src/Symbol.cpp src/Symbol.h src/ParseNode.cpp src/ParseNode.h src/ParseTree.cpp src/ParseTree.h src/NodeCondition/NodeCondition.h src/NodeCondition/IsLeaf.cpp src/NodeCondition/IsLeaf.h src/NodeCondition/IsEnglishLeaf.cpp src/NodeCondition/IsEnglishLeaf.h src/NodeCollector.cpp src/NodeCollector.h src/TreeBank.cpp src/TreeBank.h src/ConstituentSpan.cpp src/ConstituentSpan.h Test/MetricTest.cpp Test/SymbolTest.cpp Test/NodeCollectorTest.cpp Test/ParseTreeTest.cpp Test/TreeBankTest.cpp src/ParallelTreeBank.cpp src/ParallelTreeBank.h Test/ParallelTreeBankTest.cpp)
target_link_libraries(Test dictionary::dictionary)