Skip to content

Commit a5d7f41

Browse files
committed
Download Intercept library to vendor folder on build if needed
1 parent 55d75d1 commit a5d7f41

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,6 @@ CTestTestfile.cmake
5252

5353
# JetBrains
5454
.idea/
55+
56+
# Intercept library
57+
vendor/intercept/

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

CMakeLists.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ project (template-plugin)
99
#Enabling this results in better performance when handling strings to SQF commands.
1010
option(USE_ENGINE_TYPES "USE_ENGINE_TYPES" OFF)
1111

12+
#Which version of Intercept to build against, branch/commit/tag
13+
set(INTERCEPT_VERSION "f283e2fd3ce1024e496c6c17eb27f81693f05ca8")
14+
1215
#----Don't change anything below this line
1316

1417
option(USE_64BIT_BUILD "USE_64BIT_BUILD" OFF)
@@ -38,4 +41,13 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
3841

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

41-
add_subdirectory(src)
44+
add_subdirectory(src)
45+
46+
include(ExternalProject)
47+
48+
# Download Intercept library to vendor folder
49+
ExternalProject_Add(
50+
intercept
51+
PREFIX ${CMAKE_CURRENT_LIST_DIR}/vendor/intercept
52+
URL https://github.com/intercept/intercept/archive/${INTERCEPT_VERSION}.tar.gz
53+
)

intercept

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)