LunaHook-mirror/LunaHook/CMakeLists.txt

54 lines
2.8 KiB
CMake
Raw Normal View History

2024-02-07 20:59:24 +08:00
include_directories(. util engines)
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
2024-06-24 19:04:59 +08:00
set(enginessrc livecaptions Kincaid vita3k rpcs3 yuzusuyu TYPEMOON ENTERGRAM AGES7 mono Godot 5pb lucasystem LightVN V8 pchooks Artemis KiriKiri YOX PPSSPP CMVS Suika2 )
2024-02-07 20:59:24 +08:00
set(enginepath "engine64")
set(collector "enginecollection64.cpp")
else()
2024-06-29 23:22:54 +08:00
set(enginessrc GuruGuruSMF4 TeethingRing Fizz CoffeeMaker VALKYRIA mirage CisLugI tamasoft FrontWing solfasys Diskdream splushwave ransel akatombo GASTRO GSX Aksys ScrPlayer SYSD KISS IGScript Jellyfish BKEngine Overflow SRPGStudio Suika2 FVP LCScript Ohgetsu RPGMakerRGSS3 ONScripterru OVERDRIVE HXP Palette Purple Ruf RUNE Tarte Tomato Sakuradog Troy VitaminSoft Unknown TSSystem Xbangbang Anisetta Nijyuei Interheart LovaGame Giga Jisatu101 EntisGLS Ciel ACTGS TerraLunar PPSSPP jukujojidai PCSX2 VanillawareGC cef V8 mono pchooks PONScripter Bishop sakanagl Lightvn KiriKiri SideB BGI Bootup morning shyakunage Regista NNNConfig Eushully Majiro littlecheese Elf Silkys CMVS Wolf Circus1 Circus2 Cotopha Artemis CatSystem Atelier Tenco QLIE Pal AIL2 NeXAS LunaSoft Unicorn Rejet Interlude AdobeAir Retouch Malie Live Nexton Lucifen Waffle TinkerBell SystemAoi Yuris Nitroplus2 Bruns EME RRE Candy Speed ApricoT Triangle AB2Try MBLMED GameMaker DxLib CodeX Minori Sprite RpgmXP Eagls Debonosu C4 WillPlus Tanuki GXP AOS Mink YukaSystem2 sakusesu Exp Syuntada Pensil Anim hibiki Nitroplus Reallive Siglus Taskforce2 RUGP IronGameSystem Anex86 ShinyDaysGame MarineHeart ShinaRio CaramelBox UnisonShift Escude Ryokucha Alice Footy2 utawarerumono System4x Abalone Abel 5pb HorkEye XUSE Leaf Nekopack AXL AGS AdobeFlash10 FocasLens Tamamo Ages3ResT)
2024-02-07 20:59:24 +08:00
set(enginepath "engine32")
set(collector "enginecollection32.cpp")
endif()
string(REPLACE ";" ".cpp;${enginepath}/" enginessrc "${enginessrc}")
2024-04-21 17:38:47 +08:00
#message("${enginessrc}")
2024-02-07 20:59:24 +08:00
set(enginessrc "${enginepath}/${enginessrc}.cpp")
2024-05-12 23:43:56 +08:00
message("${enginessrc}")
2024-02-07 20:59:24 +08:00
set_source_files_properties(${enginessrc} PROPERTIES SOURCE_ENCODING "UTF-8")
set(texthook_src
main.cc
texthook.cc
hookfinder.cc
${enginessrc}
${collector}
enginecontrol.cpp
embed_util.cc
hijackfuns.cc
veh_hook.cpp
2024-02-07 20:59:24 +08:00
)
2024-05-06 23:30:27 +08:00
add_library(pchhook pchhook.cpp)
target_precompile_headers(pchhook PUBLIC pchhook.h)
2024-02-07 20:59:24 +08:00
add_subdirectory(util)
add_subdirectory(engines)
2024-04-10 03:17:53 +08:00
generate_product_version(
versioninfohook
NAME "LunaHook"
COMPANY_COPYRIGHT "HIllya51 (C) 2024"
ICON ${PATH_TO_APPLICATION_ICON}
VERSION_MAJOR ${VERSION_MAJOR}
VERSION_MINOR ${VERSION_MINOR}
VERSION_PATCH ${VERSION_PATCH}
VERSION_REVISION ${VERSION_REVISION}
)
add_library(LunaHook MODULE ${texthook_src} resource.rc ${versioninfohook})
2024-02-07 20:59:24 +08:00
2024-05-06 23:30:27 +08:00
target_precompile_headers(LunaHook REUSE_FROM pchhook)
2024-02-07 20:59:24 +08:00
set_target_properties(LunaHook PROPERTIES OUTPUT_NAME "LunaHook${bitappendix}")
2024-05-24 21:04:41 +08:00
target_link_libraries(LunaHook Shlwapi pch minhook commonengine utils ${YY_Thunks_for_WinXP} ${Detours})