-
Notifications
You must be signed in to change notification settings - Fork 51
/
CMakeLists.txt
104 lines (91 loc) · 2.59 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
cmake_minimum_required(VERSION 2.8)
project(UTAustinVillaBase CXX C)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/)
find_package(Threads REQUIRED)
find_package(Boost COMPONENTS system REQUIRED)
find_package(Rcssnet3d REQUIRED)
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set (CMAKE_BUILD_TYPE Release)
endif(NOT CMAKE_BUILD_TYPE)
if(NOT CMAKE_CXX_FLAGS)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wno-unused")
endif(NOT CMAKE_CXX_FLAGS)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--enable-new-dtags")
set(CORE_PATH utwalk)
include_directories(
${CORE_PATH}
${RCSSNET3D_INCLUDE_DIR}
)
set(CORE_FILES
${CORE_PATH}/MotionCore.cpp
${CORE_PATH}/Module.cpp
${CORE_PATH}/common/NMatrix.cpp
${CORE_PATH}/math/MVTools.cpp
${CORE_PATH}/math/RotationMatrix.cpp
${CORE_PATH}/memory/Lock.cpp
${CORE_PATH}/memory/Logger.cpp
${CORE_PATH}/memory/Memory.cpp
${CORE_PATH}/memory/MemoryBlock.cpp
${CORE_PATH}/memory/PrivateMemory.cpp
${CORE_PATH}/memory/SharedMemory.cpp
${CORE_PATH}/motion/MotionModule.cpp
${CORE_PATH}/motion/UTWalkEngine.cpp
${CORE_PATH}/sensor/SensorModule.cpp
${CORE_PATH}/sensor/InertialFilter.cpp
${CORE_PATH}/kinematics/InverseKinematics.cpp
${CORE_PATH}/kinematics/ForwardKinematics.cpp
${CORE_PATH}/kinematics/KinematicsModule.cpp
${CORE_PATH}/math/Geometry.cpp
${CORE_PATH}/common/PIDController.cpp
${CORE_PATH}/motion/WalkEngineParameters.cpp
)
set(SRCS
main.cc
behaviors/behavior.cc
behaviors/naobehavior.cc
behaviors/checkfall.cc
behaviors/kicking.cc
behaviors/strategy.cc
behaviors/pkbehaviors.cc
behaviors/gazebobehavior.cc
behaviors/simplesoccer.cc
servercomm/primitives.cc
parser/parser.cc
math/hctmatrix.cc
math/vecposition.cc
math/Geometry.cc
worldmodel/worldmodel.cc
bodymodel/bodymodel.cc
particlefilter/PFLocalization.cc
particlefilter/Particle.cc
skills/skill.cc
skills/curve3d.cc
ikfast/ikfast.cpp
headers/headers.cc
audio/audio.cc
rvdraw/rvdraw.cc
${CORE_FILES}
kalman/BallKF.cpp
kalman/PlayerKF.cpp
kalman/OrigKalmanFilter.cpp
optimization/optimizationbehaviors.cc
stats/recordstatsbehavior.cc
)
set(BINARY agentspark)
add_executable(${BINARY}
${SRCS}
)
target_link_libraries(${BINARY}
${RCSSNET3D_LIBRARY}
${Boost_SYSTEM_LIBRARY}
dl
${CMAKE_THREAD_LIBS_INIT}
rt
)
# Automatically copy linked shared objects to libs directory after evey build
#add_custom_command(TARGET ${BINARY}
# POST_BUILD
# COMMAND ${CMAKE_SOURCE_DIR}/scripts/copy_libs.sh ARGS ${BINARY} libs
#)
#set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES libs)