mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
29 lines
704 B
CMake
29 lines
704 B
CMake
file(GLOB_RECURSE loader_sources
|
|
${CMAKE_CURRENT_SOURCE_DIR}/common/*.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/common/*.c
|
|
)
|
|
|
|
if (WIN32)
|
|
message(STATUS "Detected System: Windows")
|
|
|
|
file(GLOB_RECURSE windows_sources
|
|
${CMAKE_CURRENT_SOURCE_DIR}/windows/*.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/windows/*.c
|
|
)
|
|
|
|
list(APPEND loader_sources ${windows_sources})
|
|
endif()
|
|
|
|
add_library(loader SHARED ${loader_sources})
|
|
|
|
target_include_directories(loader PRIVATE
|
|
${CMAKE_SOURCE_DIR}/includes
|
|
${CMAKE_SOURCE_DIR}/includes/jvm
|
|
${CMAKE_SOURCE_DIR}/includes/jvm/win32
|
|
${CMAKE_CURRENT_SOURCE_DIR}/includes
|
|
)
|
|
|
|
target_link_libraries(loader PRIVATE
|
|
ReflectiveDLLInjection
|
|
jvm
|
|
) |