mirror of
https://github.com/maxDcb/C2LinuxImplant
synced 2026-06-08 15:48:43 +00:00
Maj core
This commit is contained in:
+41
-3
@@ -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
Reference in New Issue
Block a user