33 lines
1.1 KiB
CMake
Raw Permalink Normal View History

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}
)
2024-11-30 08:45:58 +08:00
set(shareddllproxy_common shareddllproxy.cpp dllinject.cpp aspatch.cpp update.cpp ${versioninfo})
2024-11-04 23:10:41 +08:00
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
add_executable(shareddllproxy ${shareddllproxy_common})
else()
2024-12-23 14:24:12 +08:00
add_executable(shareddllproxy ${shareddllproxy_common} lec.cpp Atlas.cpp eztrans.cpp dreye.cpp jbj7.cpp kingsoft.cpp neospeech.cpp ../implsapi.cpp)
2024-11-04 23:10:41 +08:00
add_subdirectory(voiceroid2)
endif()
2024-05-01 19:58:58 +08:00
2024-05-03 01:54:36 +08:00
target_precompile_headers(shareddllproxy REUSE_FROM pch)
2024-11-04 23:10:41 +08:00
2024-01-08 23:37:00 +08:00
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
2024-11-04 23:10:41 +08:00
target_link_libraries(shareddllproxy nlohmann Mfplat mfuuid)
2024-01-08 23:37:00 +08:00
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy64")
else()
2024-05-03 01:54:36 +08:00
target_precompile_headers(voiceroid2 REUSE_FROM pch)
2024-11-30 08:45:58 +08:00
target_link_libraries(shareddllproxy nlohmann Mfplat mfuuid voiceroid2)
2024-01-08 23:37:00 +08:00
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy32")
2024-11-04 23:10:41 +08:00
endif()