Fix windows build

This commit is contained in:
maxdcb
2025-09-04 03:31:17 -04:00
parent f1ae34dd87
commit e36aea4afa
2 changed files with 16 additions and 7 deletions
+1 -1
View File
@@ -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)
+15 -6
View File
@@ -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
```