File tree Expand file tree Collapse file tree 5 files changed +20
-8
lines changed
Expand file tree Collapse file tree 5 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -52,3 +52,6 @@ CTestTestfile.cmake
5252
5353# JetBrains
5454.idea /
55+
56+ # Intercept library
57+ vendor /intercept /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.6 )
1+ cmake_minimum_required (VERSION 3.8 )
22
33#----Make changes here
44
@@ -9,6 +9,9 @@ project (template-plugin)
99#Enabling this results in better performance when handling strings to SQF commands.
1010option (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
1417option (USE_64BIT_BUILD "USE_64BIT_BUILD" OFF )
@@ -38,4 +41,14 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
3841
3942set (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+ INSTALL_COMMAND ""
54+ )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ SOURCE_GROUP("src" FILES ${INTERCEPT_PLUGIN_SOURCES})
1515#----Don't change anything below this line
1616
1717
18- #include the Intercept headers from the submodule
19- set (INTERCEPT_CLIENT_PATH "${CMAKE_SOURCE_DIR} /intercept/src/client" )
18+ #include the Intercept headers from the vendored library
19+ set (INTERCEPT_CLIENT_PATH "${CMAKE_SOURCE_DIR} /vendor/intercept/src/ intercept/src/client" )
2020
2121set (INTERCEPT_INCLUDE_PATH "${INTERCEPT_CLIENT_PATH} /headers" "${INTERCEPT_CLIENT_PATH} /headers/shared" "${INTERCEPT_CLIENT_PATH} /headers/client/" "${INTERCEPT_CLIENT_PATH} /headers/client/sqf" )
2222
You can’t perform that action at this time.
0 commit comments