LunaHook-mirror/libs/libs.cmake

24 lines
765 B
CMake
Raw Normal View History

2024-02-07 20:59:24 +08:00
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
2024-10-22 00:44:15 +08:00
#set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X64/detours.lib)
2024-02-07 20:59:24 +08:00
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-10-22 00:44:15 +08:00
#set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X86/detours.lib)
2024-02-07 20:59:24 +08:00
endif()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/minhook)
include_directories(${CMAKE_CURRENT_LIST_DIR})
2024-10-22 00:44:15 +08:00
#include_directories(${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/include)
2024-02-07 20:59:24 +08:00
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")