2018-09-03 00:48:43 +08:00
|
|
|
include_directories(. util)
|
2018-07-21 03:10:34 +08:00
|
|
|
|
2019-02-16 16:17:16 +08:00
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
2019-03-13 23:54:19 +08:00
|
|
|
set(texthook_src
|
2018-08-23 23:53:23 +08:00
|
|
|
main.cc
|
2018-11-11 12:29:12 +08:00
|
|
|
texthook.cc
|
2019-06-02 14:09:17 +08:00
|
|
|
hookfinder.cc
|
2018-12-21 23:10:51 +08:00
|
|
|
engine/match64.cc
|
|
|
|
engine/native/pchooks.cc
|
2018-08-23 23:53:23 +08:00
|
|
|
util/ithsys/ithsys.cc
|
2019-01-09 10:52:28 +08:00
|
|
|
util/util.cc
|
2018-08-08 03:44:13 +08:00
|
|
|
)
|
2018-08-19 12:13:19 +08:00
|
|
|
else()
|
2019-03-13 23:54:19 +08:00
|
|
|
set(texthook_src
|
2018-08-23 23:53:23 +08:00
|
|
|
main.cc
|
2018-11-11 12:29:12 +08:00
|
|
|
texthook.cc
|
2019-06-02 14:09:17 +08:00
|
|
|
hookfinder.cc
|
2018-08-23 23:53:23 +08:00
|
|
|
engine/engine.cc
|
|
|
|
engine/match.cc
|
2018-09-18 09:40:54 +08:00
|
|
|
engine/native/pchooks.cc
|
2018-08-23 23:53:23 +08:00
|
|
|
util/util.cc
|
|
|
|
util/ithsys/ithsys.cc
|
|
|
|
util/disasm/disasm.cc
|
|
|
|
util/memdbg/memsearch.cc
|
2016-01-05 23:01:17 +08:00
|
|
|
)
|
2018-08-19 12:13:19 +08:00
|
|
|
endif()
|
2016-01-05 23:01:17 +08:00
|
|
|
|
2019-03-13 23:54:19 +08:00
|
|
|
add_library(texthook SHARED ${texthook_src})
|
2016-01-05 23:01:17 +08:00
|
|
|
|
2019-06-02 14:09:17 +08:00
|
|
|
target_link_libraries(texthook minhook)
|