mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 23:53:54 +08:00
24 lines
898 B
CMake
24 lines
898 B
CMake
|
|
project(shareddllproxy)
|
|
|
|
|
|
set(shareddllproxy_common shareddllproxy.cpp dllinject.cpp aspatch.cpp update.cpp ${versioninfo})
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
add_executable(shareddllproxy ${shareddllproxy_common})
|
|
|
|
else()
|
|
add_executable(shareddllproxy ${shareddllproxy_common} lec.cpp Atlas.cpp eztrans.cpp dreye.cpp jbj7.cpp kingsoft.cpp neospeech.cpp ../implsapi.cpp)
|
|
add_subdirectory(voiceroid2)
|
|
endif()
|
|
|
|
target_precompile_headers(shareddllproxy REUSE_FROM pch)
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
target_link_libraries(shareddllproxy nlohmann Mfplat mfuuid)
|
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy64")
|
|
else()
|
|
target_precompile_headers(voiceroid2 REUSE_FROM pch)
|
|
target_link_libraries(shareddllproxy nlohmann Mfplat mfuuid ${YY_Thunks_for_WinXP} voiceroid2)
|
|
set_target_properties(shareddllproxy PROPERTIES OUTPUT_NAME "shareddllproxy32")
|
|
endif() |