mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Feat: add libagent CMakeLists.txt
This commit is contained in:
1 parent
1931072b96
commit
a251b8996e
3 files changed
+23
-1
No files matched your search
+3
-1
@@ -1 +1,3 @@
|
||||
build/*
|
||||
build/
|
||||
.cache/
|
||||
*.log
|
||||
@@ -19,3 +19,4 @@ add_subdirectory(${CMAKE_SOURCE_DIR}/includes/ReflectiveDLLInjection)
|
||||
add_subdirectory(${SRC_DIR}/libloader)
|
||||
add_subdirectory(${SRC_DIR}/injector)
|
||||
add_subdirectory(${SRC_DIR}/libinject)
|
||||
add_subdirectory(${SRC_DIR}/libagent)
|
||||
@@ -0,0 +1,19 @@
|
||||
file(
|
||||
GLOB_RECURSE
|
||||
agent_sources
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.c
|
||||
)
|
||||
|
||||
add_library(agent SHARED ${agent_sources})
|
||||
|
||||
target_include_directories(agent PRIVATE
|
||||
${CMAKE_SOURCE_DIR}/includes
|
||||
${CMAKE_SOURCE_DIR}/includes/jvm
|
||||
${CMAKE_SOURCE_DIR}/includes/jvm/win32
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/includes
|
||||
)
|
||||
|
||||
target_link_libraries(agent PRIVATE
|
||||
jvm
|
||||
)
|
||||
Reference in new issue
Block a user