2016-01-05 23:01:17 +08:00
|
|
|
set(vnrhost_src
|
|
|
|
host.h
|
2018-07-19 12:46:52 +08:00
|
|
|
pipe.h
|
2016-01-05 23:01:17 +08:00
|
|
|
textthread.h
|
2018-07-21 05:21:35 +08:00
|
|
|
winmutex.h
|
2016-01-05 23:01:17 +08:00
|
|
|
host.cc
|
|
|
|
pipe.cc
|
|
|
|
textthread.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(vnrhost SHARED ${vnrhost_src})
|
|
|
|
|
|
|
|
set_target_properties(vnrhost PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)
|
|
|
|
|
|
|
|
target_compile_options(vnrhost PRIVATE
|
|
|
|
# /GR-
|
2018-07-29 13:37:54 +08:00
|
|
|
$<$<CONFIG:Release>:>
|
2016-01-05 23:01:17 +08:00
|
|
|
$<$<CONFIG:Debug>:>
|
|
|
|
)
|
|
|
|
|
|
|
|
target_compile_definitions(vnrhost
|
|
|
|
PRIVATE
|
|
|
|
ITH_HAS_CRT
|
|
|
|
_CRT_NON_CONFORMING_SWPRINTFS
|
|
|
|
)
|