Commit 6d34aeac authored by Matthew Hausknecht's avatar Matthew Hausknecht

Updated cmakelists for optional installation of additional teams.

parent a3d29c63
...@@ -62,10 +62,7 @@ cmake_install.cmake ...@@ -62,10 +62,7 @@ cmake_install.cmake
CMakeFiles/ CMakeFiles/
# Executeables # Executeables
bin/teams/base/agent bin/teams/
bin/teams/base/sample_coach
bin/teams/base/sample_player
bin/teams/base/sample_trainer
bin/rcssserver bin/rcssserver
bin/soccerwindow2 bin/soccerwindow2
example/hfo_example_agent example/hfo_example_agent
......
...@@ -3,6 +3,7 @@ project(hfo) ...@@ -3,6 +3,7 @@ project(hfo)
include(ExternalProject) include(ExternalProject)
option(BUILD_SOCCERWINDOW "Build Soccerwindow Visualizer" ON) option(BUILD_SOCCERWINDOW "Build Soccerwindow Visualizer" ON)
option(INSTALL_ADDITIONAL_TEAMS "Install additional team binaries" ON)
add_definitions(-DELOG) add_definitions(-DELOG)
...@@ -44,6 +45,19 @@ if(BUILD_SOCCERWINDOW) ...@@ -44,6 +45,19 @@ if(BUILD_SOCCERWINDOW)
install(DIRECTORY ${SOCCERWINDOW2_BINARY_DIR} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} USE_SOURCE_PERMISSIONS) install(DIRECTORY ${SOCCERWINDOW2_BINARY_DIR} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR} USE_SOURCE_PERMISSIONS)
endif() endif()
if(INSTALL_ADDITIONAL_TEAMS)
ExternalProject_Add(hfo-teams
GIT_REPOSITORY "https://github.com/mhauskn/hfo-teams.git"
GIT_TAG "master"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
UPDATE_COMMAND ""
INSTALL_COMMAND "")
ExternalProject_Get_Property(hfo-teams SOURCE_DIR)
set(TEAMS_SOURCE_DIR ${SOURCE_DIR}/teams)
install(DIRECTORY ${TEAMS_SOURCE_DIR} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin USE_SOURCE_PERMISSIONS)
endif()
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY bin)
include_directories(${SOURCE_DIR} ${SOURCE_DIR}/chain_action) include_directories(${SOURCE_DIR} ${SOURCE_DIR}/chain_action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment