mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
45 lines
775 B
CMake
45 lines
775 B
CMake
include_directories(. util)
|
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
|
set(vnrhook_src
|
|
main.cc
|
|
texthook.cc
|
|
engine/match64.cc
|
|
engine/native/pchooks.cc
|
|
util/ithsys/ithsys.cc
|
|
util/util.cc
|
|
)
|
|
else()
|
|
set(vnrhook_src
|
|
main.cc
|
|
texthook.cc
|
|
engine/engine.cc
|
|
engine/match.cc
|
|
engine/native/pchooks.cc
|
|
util/util.cc
|
|
util/ithsys/ithsys.cc
|
|
util/disasm/disasm.cc
|
|
util/memdbg/memsearch.cc
|
|
)
|
|
endif()
|
|
|
|
add_library(vnrhook SHARED ${vnrhook_src})
|
|
|
|
set_target_properties(vnrhook PROPERTIES
|
|
LINK_FLAGS "/SUBSYSTEM:WINDOWS /MANIFEST:NO"
|
|
)
|
|
|
|
set(vnrhook_libs
|
|
Version.lib
|
|
minhook
|
|
)
|
|
|
|
target_link_libraries(vnrhook ${vnrhook_libs})
|
|
|
|
target_compile_definitions(vnrhook
|
|
PRIVATE
|
|
_CRT_NON_CONFORMING_SWPRINTFS
|
|
_SCL_SECURE_NO_WARNINGS # config.pri
|
|
_CRT_SECURE_NO_WARNINGS
|
|
)
|