generated from xforce/bazel-cpp-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
35 lines (28 loc) · 934 Bytes
/
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
cmake_minimum_required (VERSION 3.11)
project (meow-hook)
set (ASMJIT_STATIC TRUE)
add_subdirectory(third_party/asmjit)
add_subdirectory(third_party/zydis)
add_library("meow-hook" STATIC)
target_compile_definitions("meow-hook" PRIVATE "NOMINMAX" "WIN32_LEAN_AND_MEAN")
set_property(TARGET meow-hook PROPERTY CXX_STANDARD 17)
target_include_directories("meow-hook"
PUBLIC "include"
PRIVATE "src")
target_sources("meow-hook"
PRIVATE
"include/meow_hook/detour.h"
"include/meow_hook/memory.h"
"include/meow_hook/pattern_search.h"
"include/meow_hook/util.h"
"src/detour.cc"
"src/detour_x86.cc"
"src/detour_x86_64.cc"
"src/instruction_set.cc"
"src/memory.cc"
"src/pattern_search.cc"
)
target_link_libraries("meow-hook" "Zydis")
add_dependencies(meow-hook Zydis)
target_link_libraries("meow-hook" "asmjit")
add_dependencies(meow-hook asmjit)