Skip to content

Commit

Permalink
Download Intercept library to vendor folder on build if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dahlgren committed Apr 20, 2018
1 parent 55d75d1 commit a5d7f41
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ CTestTestfile.cmake

# JetBrains
.idea/

# Intercept library
vendor/intercept/
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

14 changes: 13 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ project (template-plugin)
#Enabling this results in better performance when handling strings to SQF commands.
option(USE_ENGINE_TYPES "USE_ENGINE_TYPES" OFF)

#Which version of Intercept to build against, branch/commit/tag
set(INTERCEPT_VERSION "f283e2fd3ce1024e496c6c17eb27f81693f05ca8")

#----Don't change anything below this line

option(USE_64BIT_BUILD "USE_64BIT_BUILD" OFF)
Expand Down Expand Up @@ -38,4 +41,13 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)

set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "" FORCE)

add_subdirectory(src)
add_subdirectory(src)

include(ExternalProject)

# Download Intercept library to vendor folder
ExternalProject_Add(
intercept
PREFIX ${CMAKE_CURRENT_LIST_DIR}/vendor/intercept
URL https://github.com/intercept/intercept/archive/${INTERCEPT_VERSION}.tar.gz
)
1 change: 0 additions & 1 deletion intercept
Submodule intercept deleted from f283e2

0 comments on commit a5d7f41

Please sign in to comment.