diff --git a/CMakeLists.txt b/CMakeLists.txt index 9027527..22c1d90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/README.md b/README.md index 8e01bd6..98ea619 100644 --- a/README.md +++ b/README.md @@ -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 -``` \ No newline at end of file +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 +cd .. +ctest --test-dir build -C Release +```