2018-09-02 12:48:43 -04:00
|
|
|
include_directories(. util)
|
2018-07-20 15:10:34 -04:00
|
|
|
|
2019-02-16 03:17:16 -05:00
|
|
|
if(${CMAKE_SIZEOF_VOID_P} EQUAL 8)
|
2019-03-13 11:54:19 -04:00
|
|
|
set(texthook_src
|
2018-08-23 11:53:23 -04:00
|
|
|
main.cc
|
2018-11-10 23:29:12 -05:00
|
|
|
texthook.cc
|
2018-12-21 10:10:51 -05:00
|
|
|
engine/match64.cc
|
|
|
|
engine/native/pchooks.cc
|
2018-08-23 11:53:23 -04:00
|
|
|
util/ithsys/ithsys.cc
|
2019-01-08 21:52:28 -05:00
|
|
|
util/util.cc
|
2018-08-07 15:44:13 -04:00
|
|
|
)
|
2018-08-19 00:13:19 -04:00
|
|
|
else()
|
2019-03-13 11:54:19 -04:00
|
|
|
set(texthook_src
|
2018-08-23 11:53:23 -04:00
|
|
|
main.cc
|
2018-11-10 23:29:12 -05:00
|
|
|
texthook.cc
|
2018-08-23 11:53:23 -04:00
|
|
|
engine/engine.cc
|
|
|
|
engine/match.cc
|
2018-09-17 21:40:54 -04:00
|
|
|
engine/native/pchooks.cc
|
2018-08-23 11:53:23 -04:00
|
|
|
util/util.cc
|
|
|
|
util/ithsys/ithsys.cc
|
|
|
|
util/disasm/disasm.cc
|
|
|
|
util/memdbg/memsearch.cc
|
2016-01-06 00:01:17 +09:00
|
|
|
)
|
2018-08-19 00:13:19 -04:00
|
|
|
endif()
|
2016-01-06 00:01:17 +09:00
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
add_library(texthook SHARED ${texthook_src})
|
2016-01-06 00:01:17 +09:00
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
set_target_properties(texthook PROPERTIES
|
2016-01-06 00:01:17 +09:00
|
|
|
LINK_FLAGS "/SUBSYSTEM:WINDOWS /MANIFEST:NO"
|
|
|
|
)
|
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
set(texthook_libs
|
2016-01-06 00:01:17 +09:00
|
|
|
Version.lib
|
2018-08-24 11:33:01 -04:00
|
|
|
minhook
|
2016-01-06 00:01:17 +09:00
|
|
|
)
|
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
target_link_libraries(texthook ${texthook_libs})
|
2016-01-06 00:01:17 +09:00
|
|
|
|
2019-03-13 11:54:19 -04:00
|
|
|
target_compile_definitions(texthook
|
2016-01-06 00:01:17 +09:00
|
|
|
PRIVATE
|
|
|
|
_CRT_NON_CONFORMING_SWPRINTFS
|
2018-09-22 15:45:54 -04:00
|
|
|
_SCL_SECURE_NO_WARNINGS # config.pri
|
|
|
|
_CRT_SECURE_NO_WARNINGS
|
2018-12-21 10:10:51 -05:00
|
|
|
)
|