-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (34 loc) · 1.24 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
cmake_minimum_required(VERSION 3.17)
project(wkWormOrder)
set(CMAKE_CXX_STANDARD 20)
add_library(hacklib STATIC
lib/hacklib/ExeFile.cpp lib/hacklib/ExeFile_WIN32.cpp
lib/hacklib/PatternScanner.cpp lib/hacklib/Memory_WIN32.cpp)
add_subdirectory(lib/fmt)
link_directories(lib)
include_directories(include lib/hacklib)
configure_file(
resource.rc.in
resource.rc
)
add_definitions(-DLIBRARY_EXPORTS)
add_library(wkWormOrder SHARED
src/dllmain.cpp
src/Config.cpp src/Config.h
src/Hooks.cpp src/Hooks.h
src/W2App.cpp src/W2App.h
src/Utils.cpp src/Utils.h
src/BitmapImage.h
src/BitmapTextbox.cpp src/BitmapTextbox.h
src/Debugf.h
src/entities/CList.h
src/entities/CTask.h
src/entities/CGameTask.h
src/entities/CTaskWorm.cpp src/entities/CTaskWorm.h
src/entities/CTaskTeam.cpp src/entities/CTaskTeam.h
src/LobbyScrambler.cpp src/LobbyScrambler.h
src/Chat.cpp src/Chat.h
${CMAKE_CURRENT_BINARY_DIR}/resource.rc
)
set_property(TARGET wkWormOrder hacklib fmt PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_link_libraries(wkWormOrder hacklib capstone Polyhook_2 version fmt::fmt)