File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 @@ -7,13 +7,12 @@ addons:
77 sources :
88 - ubuntu-toolchain-r-test
99 packages :
10- - gcc-7
11- - gcc-7-multilib
1210 - g++-7
1311 - g++-7-multilib
12+ - linux-libc-dev:i386 # asm/errno.h
1413
1514before_script :
1615 - CXX=g++-7 CC=gcc-7 cmake .
1716
1817script :
19- - make
18+ - CXX=g++-7 CC=gcc-7 make
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 "dfa2ce681154337a1640ea7fa2d00576fb44349b" )
14+
1215#----Don't change anything below this line
1316
1417option (USE_64BIT_BUILD "USE_64BIT_BUILD" OFF )
@@ -33,9 +36,21 @@ set(CMAKE_CXX_STANDARD 17)
3336set (CMAKE_CXX_STANDARD_REQUIRED ON )
3437set (CMAKE_CXX_EXTENSIONS OFF )
3538
36- set (CMAKE_INCLUDE_CURRENT_DIR ON )
39+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
3740set_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+ BUILD_COMMAND ""
54+ CONFIGURE_COMMAND ""
55+ INSTALL_COMMAND ""
56+ )
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