-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
59 lines (50 loc) · 4.34 KB
/
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
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
54
55
56
57
58
59
cmake_minimum_required(VERSION 3.12)
project(abtm)
set(CMAKE_CXX_STANDARD 17)
include_directories(src)
find_package(OpenMP REQUIRED) # Find the package
find_package(YARP REQUIRED)
find_package(OpenCV REQUIRED)
add_executable(abtm test.cpp src/Memory.cpp src/Node.cpp src/Tree.cpp src/TreeParser.cpp)
target_link_libraries(abtm libyaml-cpp.so)
add_executable(speedtest test_speed.cpp src/Memory.cpp src/Node.cpp src/Tree.cpp src/TreeParser.cpp)
target_link_libraries(speedtest libyaml-cpp.so ${OpenMP_CXX_LIBRARIES})
add_executable(testparser src/test_new_parser.cpp src/Memory.cpp src/Node.cpp src/Tree.cpp
src/parser/Parser.cpp src/parser/Parser.h src/parser/Builder.cpp src/parser/BaseParser.cpp src/parser/BaseParser.h
src/parser/ControlNodeParser.cpp src/parser/NodeParser.cpp src/parser/NodeParser.h
src/parser/ActionStrParser.cpp src/parser/ActionStrParser.h src/parser/ExpressionParser.cpp
src/parser/ExpressionParser.h src/parser/ConditionStrParser.cpp src/parser/ConditionStrParser.h
src/parser/LeafStrParser.cpp src/parser/LeafStrParser.h src/parser/CommonParser.cpp
src/parser/CommonParser.h src/parser/NodesParser.cpp src/parser/NodesParser.h src/parser/ParserWithModules.cpp
src/parser/ParserWithModules.h src/parser/VariablesParser.cpp src/parser/VariablesParser.h)
target_link_libraries(testparser libyaml-cpp.so)
add_executable(test_template_parser src/tests/template_parser/test_template_parser.cpp src/Memory.cpp src/Node.cpp src/Tree.cpp
src/parser/Parser.cpp src/parser/Parser.h src/parser/Builder.cpp src/parser/BaseParser.cpp src/parser/BaseParser.h
src/parser/ControlNodeParser.cpp src/parser/NodeParser.cpp src/parser/NodeParser.h
src/parser/ActionStrParser.cpp src/parser/ActionStrParser.h src/parser/ExpressionParser.cpp
src/parser/ExpressionParser.h src/parser/ConditionStrParser.cpp src/parser/ConditionStrParser.h
src/parser/LeafStrParser.cpp src/parser/LeafStrParser.h src/parser/CommonParser.cpp
src/parser/CommonParser.h src/parser/NodesParser.cpp src/parser/NodesParser.h src/parser/ParserWithModules.cpp
src/parser/ParserWithModules.h src/parser/VariablesParser.cpp src/parser/VariablesParser.h
src/parser/TemplateParser.cpp src/parser/TemplateParser.h)
target_link_libraries(test_template_parser libyaml-cpp.so)
add_executable(test_mimo src/tests/mimo/test_mimo.cpp src/Memory.cpp src/Node.cpp src/ExecutorBase.h src/Tree.cpp
src/parser/Parser.cpp src/parser/Parser.h src/parser/Builder.cpp src/parser/BaseParser.cpp src/parser/BaseParser.h
src/parser/ControlNodeParser.cpp src/parser/NodeParser.cpp src/parser/NodeParser.h
src/parser/ActionStrParser.cpp src/parser/ActionStrParser.h src/parser/ExpressionParser.cpp
src/parser/ExpressionParser.h src/parser/ConditionStrParser.cpp src/parser/ConditionStrParser.h
src/parser/LeafStrParser.cpp src/parser/LeafStrParser.h src/parser/CommonParser.cpp
src/parser/CommonParser.h src/parser/NodesParser.cpp src/parser/NodesParser.h src/parser/ParserWithModules.cpp
src/parser/ParserWithModules.h src/parser/VariablesParser.cpp src/parser/VariablesParser.h
src/parser/TemplateParser.cpp src/parser/TemplateParser.h src/io/IOBase.cpp
src/io/MIMOCenter.cpp src/io/MIMOCenter.h src/io/cpp/SynchronousAction.cpp src/io/cpp/SynchronousAction.h
src/io/cpp/CPPFunctionParser.cpp src/io/cpp/CPPFunctionParser.h src/tests/mimo/cpp_function_examples.h
src/io/cpp/CPPFunction.cpp src/io/cpp/CPPFunction.h src/io/IOParser.cpp src/io/IOParser.h src/parser/Scope.cpp
src/parser/Scope.h src/tests/mimo/icub_function_example.h src/tests/mimo/iCubRobot/iCubRobot.cpp
src/tests/mimo/iCubRobot/iCubRobot.h src/tests/mimo/iCubRobot/iCubPart.cpp src/tests/mimo/iCubRobot/iCubPart.h
src/tests/mimo/iCubRobot/iCubEmotions.cpp src/tests/mimo/iCubRobot/iCubEmotions.h)
target_link_libraries(test_mimo libyaml-cpp.so ${YARP_LIBRARIES} ${OpenCV_LIBRARIES})
add_executable(test_icub src/tests/mimo/test_icub.cpp src/tests/mimo/iCubRobot/iCubRobot.cpp
src/tests/mimo/iCubRobot/iCubRobot.h src/tests/mimo/iCubRobot/iCubPart.cpp src/tests/mimo/iCubRobot/iCubPart.h
src/tests/mimo/iCubRobot/iCubEmotions.cpp src/tests/mimo/iCubRobot/iCubEmotions.h)
target_link_libraries(test_icub libyaml-cpp.so ${YARP_LIBRARIES} ${OpenCV_LIBRARIES})