mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
[Add] Introduced structured directories: core, injector, loader, utils, ReflectiveDLLInjection [Add] Individual CMakeLists.txt for each module with target linking and unified output [Change] Updated root CMakeLists.txt to handle modular builds and output directory configuration [Keep] ReflectiveDLLInjection structure unchanged for compatibility [Improve] Overall build clarity, modular maintainability, and code scalability
21 lines
588 B
CMake
21 lines
588 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(JuiceAgent LANGUAGES C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# output directories
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
|
|
|
|
# includes
|
|
set(INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/includes)
|
|
|
|
# library - ReflectiveDLLInjection
|
|
add_subdirectory(${INCLUDES}/ReflectiveDLLInjection)
|
|
|
|
# modules
|
|
add_subdirectory(src/core)
|
|
add_subdirectory(src/loader)
|
|
add_subdirectory(src/injector) |