Textractor/vnrhook/CMakeLists.txt
2019-02-16 03:17:16 -05:00

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
)