Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Seminar-HFO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
Seminar-HFO
Commits
d10baeaa
Commit
d10baeaa
authored
Sep 22, 2015
by
Matthew Hausknecht
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't rebuild common sources.
parent
9422cc3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
12 deletions
+38
-12
CMakeLists.txt
CMakeLists.txt
+38
-12
No files found.
CMakeLists.txt
View file @
d10baeaa
...
...
@@ -9,6 +9,7 @@ add_definitions(-DELOG)
ExternalProject_Add
(
rcssserver
GIT_REPOSITORY
"git@github.com:mhauskn/rcssserver.git"
GIT_TAG
"master"
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
UPDATE_COMMAND
""
INSTALL_COMMAND
""
)
ExternalProject_Get_Property
(
rcssserver SOURCE_DIR
)
...
...
@@ -20,23 +21,22 @@ set(RCSSSERVER_BINARY_DIR ${BINARY_DIR}/bin)
ExternalProject_Add
(
librcsc
GIT_REPOSITORY
"git@github.com:mhauskn/librcsc.git"
GIT_TAG
"master"
CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release
UPDATE_COMMAND
""
INSTALL_COMMAND
""
)
ExternalProject_Get_Property
(
librcsc SOURCE_DIR
)
include_directories
(
${
SOURCE_DIR
}
)
set
(
LIBRCSC_INCLUDE_DIR
${
SOURCE_DIR
}
)
message
(
STATUS
"LIBRCSC_INCLUDE_DIR:
${
LIBRCSC_INCLUDE_DIR
}
"
)
ExternalProject_Get_Property
(
librcsc BINARY_DIR
)
link_directories
(
${
BINARY_DIR
}
/lib
)
set
(
LIBRCSC_LINK_DIR
${
BINARY_DIR
}
/lib
)
message
(
STATUS
"LIBRCSC_LINK_DIR:
${
LIBRCSC_LINK_DIR
}
"
)
if
(
BUILD_SOCCERWINDOW
)
ExternalProject_Add
(
soccerwindow2
DEPENDS librcsc
GIT_REPOSITORY
"git@github.com:mhauskn/soccerwindow2.git"
GIT_TAG
"master"
CMAKE_ARGS -DLIBRCSC_INCLUDE_DIR=
${
LIBRCSC_INCLUDE_DIR
}
-DLIBRCSC_LINK_DIR=
${
LIBRCSC_LINK_DIR
}
CMAKE_ARGS -D
CMAKE_BUILD_TYPE=Release -D
LIBRCSC_INCLUDE_DIR=
${
LIBRCSC_INCLUDE_DIR
}
-DLIBRCSC_LINK_DIR=
${
LIBRCSC_LINK_DIR
}
UPDATE_COMMAND
""
INSTALL_COMMAND
""
)
ExternalProject_Get_Property
(
soccerwindow2 BINARY_DIR
)
...
...
@@ -48,16 +48,40 @@ set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set
(
CMAKE_RUNTIME_OUTPUT_DIRECTORY bin
)
include_directories
(
${
SOURCE_DIR
}
${
SOURCE_DIR
}
/chain_action
)
file
(
GLOB SOURCES
${
SOURCE_DIR
}
/*.cpp
${
SOURCE_DIR
}
/chain_action/*.cpp
)
list
(
REMOVE_ITEM SOURCES
${
SOURCE_DIR
}
/main_coach.cpp
${
SOURCE_DIR
}
/main_player.cpp
${
SOURCE_DIR
}
/main_trainer.cpp
${
SOURCE_DIR
}
/main_agent.cpp
${
SOURCE_DIR
}
/sample_coach.cpp
${
SOURCE_DIR
}
/sample_player.cpp
${
SOURCE_DIR
}
/sample_trainer.cpp
${
SOURCE_DIR
}
/agent.cpp
${
SOURCE_DIR
}
/HFO.cpp
)
set
(
PLAYER_CPP bhv_basic_move.cpp bhv_basic_offensive_kick.cpp
bhv_basic_tackle.cpp bhv_custom_before_kick_off.cpp
bhv_force_pass.cpp bhv_go_to_static_ball.cpp
bhv_goalie_basic_move.cpp bhv_goalie_chase_ball.cpp
bhv_goalie_free_kick.cpp bhv_prepare_set_play_kick.cpp
bhv_set_play.cpp bhv_set_play_free_kick.cpp
bhv_set_play_goal_kick.cpp bhv_set_play_indirect_free_kick.cpp
bhv_set_play_kick_in.cpp bhv_set_play_kick_off.cpp
bhv_their_goal_kick_move.cpp bhv_penalty_kick.cpp
feature_extractor.cpp lowlevel_feature_extractor.cpp
highlevel_feature_extractor.cpp neck_default_intercept_neck.cpp
neck_goalie_turn_neck.cpp neck_offensive_intercept_neck.cpp
view_tactical.cpp intention_receive.cpp
intention_wait_after_set_play_kick.cpp soccer_role.cpp
role_center_back.cpp role_center_forward.cpp role_defensive_half.cpp
role_goalie.cpp role_offensive_half.cpp role_sample.cpp
role_side_back.cpp role_side_forward.cpp role_side_half.cpp
role_keepaway_keeper.cpp role_keepaway_taker.cpp
sample_communication.cpp keepaway_communication.cpp
sample_field_evaluator.cpp sample_player.cpp strategy.cpp
)
foreach
(
src
${
PLAYER_CPP
}
)
list
(
APPEND PLAYER_SOURCES
${
SOURCE_DIR
}
/
${
src
}
)
endforeach
(
src
${
PLAYER_CPP
}
)
file
(
GLOB CHAIN_ACTION_SOURCES
${
SOURCE_DIR
}
/chain_action/*.cpp
)
list
(
APPEND LINK_LIBS rcsc_agent rcsc_geom rcsc_param rcsc_ann
rcsc_net rcsc_gz rcsc_time rcsc_rcg
)
add_executable
(
sample_coach
${
SOURCE_DIR
}
/main_coach.cpp
${
SOURCE_DIR
}
/sample_coach.cpp
${
SOURCES
}
)
add_executable
(
sample_player
${
SOURCE_DIR
}
/HFO.cpp
${
SOURCE_DIR
}
/main_player.cpp
${
SOURCE_DIR
}
/sample_player.cpp
${
SOURCE_DIR
}
/agent.cpp
${
SOURCES
}
)
add_executable
(
sample_trainer
${
SOURCE_DIR
}
/main_trainer.cpp
${
SOURCE_DIR
}
/sample_trainer.cpp
${
SOURCES
}
)
add_executable
(
agent
${
SOURCE_DIR
}
/main_agent.cpp
${
SOURCE_DIR
}
/agent.cpp
${
SOURCES
}
)
add_library
(
player_chain_action STATIC
${
PLAYER_SOURCES
}
${
CHAIN_ACTION_SOURCES
}
)
add_executable
(
sample_coach
${
SOURCE_DIR
}
/main_coach.cpp
${
SOURCE_DIR
}
/sample_coach.cpp
)
add_executable
(
sample_player
${
SOURCE_DIR
}
/HFO.cpp
${
SOURCE_DIR
}
/main_player.cpp
${
SOURCE_DIR
}
/sample_player.cpp
${
SOURCE_DIR
}
/agent.cpp
)
add_executable
(
sample_trainer
${
SOURCE_DIR
}
/main_trainer.cpp
${
SOURCE_DIR
}
/sample_trainer.cpp
)
add_executable
(
agent
${
SOURCE_DIR
}
/HFO.cpp
${
SOURCE_DIR
}
/main_agent.cpp
${
SOURCE_DIR
}
/agent.cpp
)
add_library
(
hfo-lib SHARED
${
SOURCE_DIR
}
/HFO.hpp
${
SOURCE_DIR
}
/HFO.cpp
)
set_target_properties
(
hfo-lib PROPERTIES OUTPUT_NAME hfo
)
set_target_properties
(
hfo-lib PROPERTIES LIBRARY_OUTPUT_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
...
...
@@ -68,15 +92,17 @@ add_dependencies(sample_trainer librcsc)
add_dependencies
(
agent librcsc
)
add_dependencies
(
hfo-lib librcsc
)
target_link_libraries
(
player_chain_action
${
LINK_LIBS
}
)
target_link_libraries
(
sample_coach
${
LINK_LIBS
}
)
target_link_libraries
(
sample_player
${
LINK_LIBS
}
)
target_link_libraries
(
sample_player
${
LINK_LIBS
}
player_chain_action
)
target_link_libraries
(
sample_trainer
${
LINK_LIBS
}
)
target_link_libraries
(
agent
${
LINK_LIBS
}
)
target_link_libraries
(
agent
${
LINK_LIBS
}
player_chain_action
)
link_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib
)
add_executable
(
hfo_example_agent
${
CMAKE_CURRENT_SOURCE_DIR
}
/example/hfo_example_agent.cpp
)
set_target_properties
(
hfo_example_agent PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_
CURRENT_SOURCE
_DIR
}
/example
)
set_target_properties
(
hfo_example_agent PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_
BINARY
_DIR
}
/example
)
target_link_libraries
(
hfo_example_agent hfo
)
add_dependencies
(
hfo_example_agent hfo-lib
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/example DESTINATION
${
CMAKE_CURRENT_SOURCE_DIR
}
/ USE_SOURCE_PERMISSIONS
)
install
(
DIRECTORY
${
RCSSSERVER_BINARY_DIR
}
${
CMAKE_CURRENT_BINARY_DIR
}
/bin DESTINATION
${
CMAKE_CURRENT_SOURCE_DIR
}
/ USE_SOURCE_PERMISSIONS
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment