Skip to content

Commit e36aea4

Browse files
committed
Fix windows build
1 parent f1ae34d commit e36aea4

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ FetchContent_MakeAvailable(PipeHandler)
7979
FetchContent_MakeAvailable(MemoryModule)
8080
if(WIN32)
8181
set(_pipe_inc ${pipehandler_SOURCE_DIR}/src)
82-
set(_mm_inc ${memorymodule_SOURCE_DIR}/src)
82+
set(_mm_inc ${memorymodule_SOURCE_DIR}/)
8383
else()
8484
set(_pipe_inc ${pipehandler_SOURCE_DIR}/libs/libPipeHandlerDumy/src)
8585
set(_mm_inc ${memorymodule_SOURCE_DIR}/libs/libMemoryModuleDumy/src)

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Overview
44

5-
**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.
5+
**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.
66

7-
This repository is intended to be used as a dependency in both Windows and Linux builds of the Exploration C2 framework.
7+
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.
88

99
## Features
1010

@@ -23,12 +23,21 @@ This repository is intended to be used as a dependency in both Windows and Linux
2323
- CMake 3.24
2424
- C++17 compatible compiler (e.g., `g++`, or MSVC)
2525

26-
This repo is not supposed to be built on its own.
27-
28-
## Build
26+
## Build, Tests and Package
2927

3028
```
3129
cmake -S . -B build
3230
cmake --build build
3331
cmake --install build --prefix <install_root>
34-
```
32+
ctest --test-dir build --output-on-failure
33+
```
34+
35+
```
36+
mkdir build
37+
cd build
38+
cmake -G "Visual Studio 17 2022" ..
39+
msbuild .\C2Core.sln /property:Configuration=Release -m
40+
cmake --install . --prefix <install_root>
41+
cd ..
42+
ctest --test-dir build -C Release
43+
```

0 commit comments

Comments
 (0)