Commit 1e97fbe6 authored by Matthew Hausknecht's avatar Matthew Hausknecht

Only install team binaries in linux.

parent 2cb258b2
...@@ -46,6 +46,7 @@ if(BUILD_SOCCERWINDOW) ...@@ -46,6 +46,7 @@ if(BUILD_SOCCERWINDOW)
endif() endif()
if(INSTALL_ADDITIONAL_TEAMS) if(INSTALL_ADDITIONAL_TEAMS)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
ExternalProject_Add(hfo-teams ExternalProject_Add(hfo-teams
GIT_REPOSITORY "https://github.com/mhauskn/hfo-teams.git" GIT_REPOSITORY "https://github.com/mhauskn/hfo-teams.git"
GIT_TAG "master" GIT_TAG "master"
...@@ -56,6 +57,9 @@ if(INSTALL_ADDITIONAL_TEAMS) ...@@ -56,6 +57,9 @@ if(INSTALL_ADDITIONAL_TEAMS)
ExternalProject_Get_Property(hfo-teams SOURCE_DIR) ExternalProject_Get_Property(hfo-teams SOURCE_DIR)
set(TEAMS_SOURCE_DIR ${SOURCE_DIR}/teams) set(TEAMS_SOURCE_DIR ${SOURCE_DIR}/teams)
install(DIRECTORY ${TEAMS_SOURCE_DIR} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin USE_SOURCE_PERMISSIONS) install(DIRECTORY ${TEAMS_SOURCE_DIR} DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin USE_SOURCE_PERMISSIONS)
else()
MESSAGE("Additional team binaries only supported in Linux. Skipping Install.")
endif()
endif() endif()
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
......
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