Seregon/Hermes

Hermes/Dyforge is a program written in c++ allows you to inject a dll that can analyze all processes in a program, can be used for mod and reverse engeneering

C/3.8 KB/No license
DyForge/CMakeLists.txt
Hermes / DyForge / CMakeLists.txt
1cmake_minimum_required(VERSION 3.15)
2project(DyForge VERSION 1.0.0 LANGUAGES CXX)
3 
4# Imposta C++17
5set(CMAKE_CXX_STANDARD 17)
6set(CMAKE_CXX_STANDARD_REQUIRED ON)
7 
8# Definizioni per Windows
9if(WIN32)
10 add_definitions(-DWIN32_LEAN_AND_MEAN)
11endif()
12 
13# File sorgenti
14set(SOURCES
15 main.cpp
16)
17 
18# Crea l'eseguibile
19add_executable(DyForge ${SOURCES})
20 
21# Directory degli include
22target_include_directories(DyForge
23 PRIVATE
24 ${CMAKE_SOURCE_DIR}/DyMain/include
25 ${CMAKE_SOURCE_DIR}/DyHexInject/include
26)
27 
28# Imposta la directory di output
29set_target_properties(DyForge PROPERTIES
30 RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/Debug
31)
32 
33# Collega le librerie
34target_link_libraries(DyForge
35 PRIVATE
36 ${CMAKE_BINARY_DIR}/DyMain/Debug/DyMain.lib
37 ${CMAKE_BINARY_DIR}/DyHexInject/Debug/DyHexInjectd.lib
38)
39 
40# Copia le DLL necessarie nella directory di output
41add_custom_command(TARGET DyForge POST_BUILD
42 COMMAND ${CMAKE_COMMAND} -E copy_if_different
43 ${CMAKE_BINARY_DIR}/bin/Debug/DyMain.dll
44 ${CMAKE_BINARY_DIR}/bin/Debug/DyHexInjectd.dll
45 ${CMAKE_BINARY_DIR}/bin/Debug
46)