2016-01-06 00:01:17 +09:00
|
|
|
# texthook.pro
|
|
|
|
# CONFIG += noqtgui dll #eha # eha will catch all exceptions, but does not work on Windows XP
|
|
|
|
|
|
|
|
# DEFINES += ITH_HAS_CRT # Use native CRT
|
|
|
|
|
|
|
|
# # TODO: Get rid of dependence on msvc's swprintf
|
|
|
|
# DEFINES += _CRT_NON_CONFORMING_SWPRINTFS
|
|
|
|
|
2018-07-20 15:10:34 -04:00
|
|
|
project(host)
|
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
set(vnrhost_src
|
|
|
|
hookman.h
|
|
|
|
host.h
|
2018-07-19 00:46:52 -04:00
|
|
|
pipe.h
|
2016-01-06 00:01:17 +09:00
|
|
|
textthread.h
|
2018-07-20 17:21:35 -04:00
|
|
|
winmutex.h
|
2016-01-06 00:01:17 +09:00
|
|
|
hookman.cc
|
|
|
|
host.cc
|
|
|
|
pipe.cc
|
|
|
|
textthread.cc
|
|
|
|
)
|
|
|
|
|
2018-07-20 17:36:58 -04:00
|
|
|
include_directories(../)
|
|
|
|
|
2016-01-06 00:01:17 +09:00
|
|
|
add_library(vnrhost SHARED ${vnrhost_src})
|
|
|
|
|
|
|
|
set_target_properties(vnrhost PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)
|
|
|
|
|
|
|
|
target_compile_options(vnrhost PRIVATE
|
|
|
|
# /GR-
|
2018-07-19 15:47:48 -04:00
|
|
|
$<$<CONFIG:MinSizeRel>:/MT>
|
2016-01-06 00:01:17 +09:00
|
|
|
$<$<CONFIG:Debug>:>
|
|
|
|
)
|
|
|
|
|
|
|
|
#STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
|
|
|
|
2018-07-18 23:40:44 -04:00
|
|
|
target_link_libraries(vnrhost)
|
2016-01-06 00:01:17 +09:00
|
|
|
|
|
|
|
target_compile_definitions(vnrhost
|
|
|
|
PRIVATE
|
|
|
|
ITH_HAS_CRT
|
|
|
|
_CRT_NON_CONFORMING_SWPRINTFS
|
|
|
|
)
|
|
|
|
|
|
|
|
install(TARGETS vnrhost RUNTIME
|
|
|
|
DESTINATION .
|
|
|
|
CONFIGURATIONS Release
|
|
|
|
)
|