2024-01-08 23:37:00 +08:00
|
|
|
|
|
|
|
project(shareddllproxy)
|
|
|
|
|
|
|
|
|
2024-05-01 19:58:58 +08:00
|
|
|
generate_product_version(
|
|
|
|
versioninfo
|
|
|
|
NAME "LunaTranslator shareddllproxy"
|
|
|
|
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
|
|
|
|
VERSION_MAJOR ${VERSION_MAJOR}
|
|
|
|
VERSION_MINOR ${VERSION_MINOR}
|
|
|
|
VERSION_PATCH ${VERSION_PATCH}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
add_executable(shareddllproxy shareddllproxy.cpp dllinject.cpp ntleas.cpp aspatch.cpp ${versioninfo})
|
2024-01-08 23:37:00 +08:00
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
2024-01-20 11:31:41 +08:00
|
|
|
add_library(x64lib magpie.cpp lossless.cpp)
|
2024-01-29 03:24:33 +08:00
|
|
|
target_link_libraries(shareddllproxy x64lib ${Detours})
|
2024-01-08 23:37:00 +08:00
|
|
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy64")
|
|
|
|
else()
|
|
|
|
add_subdirectory(voiceroid2)
|
|
|
|
add_library(x86lib dreye.cpp jbj7.cpp kingsoft.cpp le.cpp neospeech.cpp LR.cpp)
|
2024-01-29 03:24:33 +08:00
|
|
|
target_link_libraries(shareddllproxy x86lib voiceroid2 ${Detours})
|
2024-01-08 23:37:00 +08:00
|
|
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy32")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|