mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-23 08:54:12 +08:00
33 lines
612 B
CMake
33 lines
612 B
CMake
include_directories(. util)
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
set(texthook_src
|
|
main.cc
|
|
texthook.cc
|
|
hookfinder.cc
|
|
engine/match.cc
|
|
engine/match64.cc
|
|
engine/native/pchooks.cc
|
|
util/ithsys/ithsys.cc
|
|
util/util.cc
|
|
)
|
|
else()
|
|
set(texthook_src
|
|
main.cc
|
|
texthook.cc
|
|
hookfinder.cc
|
|
engine/engine.cc
|
|
engine/match.cc
|
|
engine/match32.cc
|
|
engine/native/pchooks.cc
|
|
util/util.cc
|
|
util/ithsys/ithsys.cc
|
|
util/disasm/disasm.cc
|
|
util/memdbg/memsearch.cc
|
|
)
|
|
endif()
|
|
|
|
add_library(texthook MODULE ${texthook_src})
|
|
target_precompile_headers(texthook REUSE_FROM pch)
|
|
target_link_libraries(texthook minhook)
|