mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-11-26 23:34:01 +08:00
24 lines
765 B
CMake
24 lines
765 B
CMake
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
#set(Detours ${CMAKE_CURRENT_LIST_DIR}/Detours-4.0.1/lib.X64/detours.lib)
|
|
else()
|
|
if(NOT DEFINED WINXP)
|
|
set(YY_Thunks_for_WinXP)
|
|
else()
|
|
set(YY_Thunks_for_WinXP ${CMAKE_CURRENT_LIST_DIR}/YY-Thunks-1.0.7-Binary/objs/X86/YY_Thunks_for_WinXP.obj)
|
|
endif()
|
|
#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
|
|
#include("${CMAKE_CURRENT_LIST_DIR}/VC-LTL helper for cmake.cmake") |