-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
67 lines (59 loc) · 1.95 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
cmake_minimum_required(VERSION 3.16)
project("GameCheats" LANGUAGES CXX ASM_MASM)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(EXECUTABLE_OUTPUT_PATH "..")
set(LIBRARY_OUTPUT_PATH "..")
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:/MP>")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:/W4>")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:/WX>")
add_compile_options("$<$<COMPILE_LANGUAGE:C,CXX>:/utf-8>")
add_compile_options("$<$<AND:$<COMPILE_LANGUAGE:ASM_MASM>,$<CONFIG:DEBUG>>:/Zi>")
add_compile_definitions(NOMINMAX WIN32_LEAN_AND_MEAN)
endif()
add_subdirectory("HackLib")
include_directories("HackLib")
add_subdirectory("EntryPoint")
add_subdirectory("ProxyLibraryGenerator")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
add_subdirectory("MayPayne")
add_subdirectory("HOMM3")
add_subdirectory("R6BO")
add_subdirectory("HiddenAndDangerous")
add_subdirectory("MayPayne2")
add_subdirectory("Hitman2012")
add_subdirectory("FalloutNV")
add_subdirectory("Hitman2000")
add_subdirectory("Hitman2002")
add_subdirectory("Hitman2004")
add_subdirectory("Hitman2006")
add_subdirectory("Stalker2007")
add_subdirectory("XCOMA")
add_subdirectory("Doom3BFG")
add_subdirectory("Doom3ROE")
add_subdirectory("Fallout2")
add_subdirectory("Template")
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_subdirectory("Quake1R")
add_subdirectory("Hitman2016")
add_subdirectory("Metro2033Redux")
add_subdirectory("Doom2016")
add_subdirectory("CrysisR")
add_subdirectory("DoomEternal")
add_subdirectory("Hitman2018")
add_subdirectory("Hitman2021")
add_subdirectory("Rage1")
add_subdirectory("Quake2R")
add_subdirectory("Fallout4")
add_subdirectory("Template")
endif()
set(BUILD_GMOCK OFF CACHE BOOL "" FORCE)
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE)
include("GoogleTest.cmake")
include(GoogleTest)
add_subdirectory("HackLibTests")
enable_testing()