mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
Fix windows build
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ FetchContent_MakeAvailable(PipeHandler)
|
||||
FetchContent_MakeAvailable(MemoryModule)
|
||||
if(WIN32)
|
||||
set(_pipe_inc ${pipehandler_SOURCE_DIR}/src)
|
||||
set(_mm_inc ${memorymodule_SOURCE_DIR}/src)
|
||||
set(_mm_inc ${memorymodule_SOURCE_DIR}/)
|
||||
else()
|
||||
set(_pipe_inc ${pipehandler_SOURCE_DIR}/libs/libPipeHandlerDumy/src)
|
||||
set(_mm_inc ${memorymodule_SOURCE_DIR}/libs/libMemoryModuleDumy/src)
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
## Overview
|
||||
|
||||
**Exploration C2 Core** is the foundational submodule shared across all components of the Exploration Command and Control (C2) framework, including [C2Implant](https://github.com/maxDcb/C2Implant), [C2LinuxImplant](https://github.com/maxDcb/C2LinuxImplant) and [C2TeamServer](https://github.com/maxDcb/C2TeamServer). Written in C++, it provides core data structures, communication protocols, and serialization mechanisms to enable modular and cross-platform development of C2 components.
|
||||
**Exploration C2 Core** is the foundational submodule/package shared across all components of the Exploration Command and Control (C2) framework, including [C2Implant](https://github.com/maxDcb/C2Implant), [C2LinuxImplant](https://github.com/maxDcb/C2LinuxImplant) and [C2TeamServer](https://github.com/maxDcb/C2TeamServer). Written in C++, it provides core data structures, communication protocols, and serialization mechanisms to enable modular and cross-platform development of C2 components.
|
||||
|
||||
This repository is intended to be used as a dependency in both Windows and Linux builds of the Exploration C2 framework.
|
||||
This repository is intended to be used as a dependency in both Windows and Linux builds of the Exploration C2 framework in the forme of a subomdule or a package.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -23,12 +23,21 @@ This repository is intended to be used as a dependency in both Windows and Linux
|
||||
- CMake 3.24
|
||||
- C++17 compatible compiler (e.g., `g++`, or MSVC)
|
||||
|
||||
This repo is not supposed to be built on its own.
|
||||
|
||||
## Build
|
||||
## Build, Tests and Package
|
||||
|
||||
```
|
||||
cmake -S . -B build
|
||||
cmake --build build
|
||||
cmake --install build --prefix <install_root>
|
||||
```
|
||||
ctest --test-dir build --output-on-failure
|
||||
```
|
||||
|
||||
```
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "Visual Studio 17 2022" ..
|
||||
msbuild .\C2Core.sln /property:Configuration=Release -m
|
||||
cmake --install . --prefix <install_root>
|
||||
cd ..
|
||||
ctest --test-dir build -C Release
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user