2024-02-07 20:59:24 +08:00
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
|
|
|
set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X64/detours.lib)
|
|
|
|
|
else()
|
2024-05-24 21:04:41 +08:00
|
|
|
|
if(NOT DEFINED WINXP)
|
|
|
|
|
set(YY_Thunks_for_WinXP)
|
|
|
|
|
else()
|
2024-02-07 20:59:24 +08:00
|
|
|
|
set(YY_Thunks_for_WinXP ${CMAKE_CURRENT_LIST_DIR}/YY-Thunks-1.0.7-Binary/objs/X86/YY_Thunks_for_WinXP.obj)
|
2024-05-24 21:04:41 +08:00
|
|
|
|
endif()
|
2024-02-07 20:59:24 +08:00
|
|
|
|
set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X86/detours.lib)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/minhook)
|
|
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/include)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
|
|
|
|
set(LTLPlatform "Win32")
|
|
|
|
|
set(SupportWinXP "true")
|
|
|
|
|
endif()
|
|
|
|
|
#https://github.com/Chuyu-Team/VC-LTL5
|
2024-05-24 19:07:16 +08:00
|
|
|
|
#include("${CMAKE_CURRENT_LIST_DIR}/VC-LTL helper for cmake.cmake")
|