This commit is contained in:
maxdcb
2026-04-21 13:48:26 +02:00
parent 920003168a
commit 0d2aa133f8
2 changed files with 42 additions and 4 deletions
+41 -3
View File
@@ -36,9 +36,27 @@ if(_prefixes)
##
## C2Core dependency and build
## libssh2 for SshExec
##
set(CMAKE_POSITION_INDEPENDENT_CODE ON) # <- makes static libs PIC
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # libssh2 as static
set(BUILD_TESTING OFF CACHE BOOL "" FORCE) # no libssh2 tests
include(FetchContent)
set(LIBSSH2_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(LIBSSH2_BUILD_TESTS OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
libssh2
GIT_REPOSITORY https://github.com/libssh2/libssh2.git
GIT_TAG libssh2-1.11.1
)
FetchContent_MakeAvailable(libssh2)
##
## C2Core dependency and build
##
find_package(C2Core CONFIG REQUIRED)
@@ -50,6 +68,9 @@ else()
message(STATUS "CMAKE_PREFIX_PATH not provided; using fallback strategy")
add_definitions(-DBUILD_IMPLANT)
##
## Conan Dependencies
##
@@ -61,15 +82,32 @@ else()
include_directories(${CMAKE_INCLUDE_PATH})
include_directories(thirdParty)
add_definitions(-DBUILD_IMPLANT)
##
## libssh2 for SshExec
##
set(CMAKE_POSITION_INDEPENDENT_CODE ON) # <- makes static libs PIC
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) # libssh2 as static
set(BUILD_TESTING OFF CACHE BOOL "" FORCE) # no libssh2 tests
include(FetchContent)
set(LIBSSH2_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
set(LIBSSH2_BUILD_TESTS OFF CACHE BOOL "" FORCE)
FetchContent_Declare(
libssh2
GIT_REPOSITORY https://github.com/libssh2/libssh2.git
GIT_TAG libssh2-1.11.1
)
FetchContent_MakeAvailable(libssh2)
##
## Build
##
include_directories(thirdParty)
add_subdirectory(libs)
add_subdirectory(thirdParty)
+1 -1
Submodule core updated: 2f6652ddbb...f152117dd2