Textractor_test/vnr/texthook/CMakeLists.txt

45 lines
858 B
CMake
Raw Normal View History

# 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
set(vnrhost_src
hookman.h
host.h
2018-07-19 12:46:52 +08:00
pipe.h
textthread.h
2018-07-21 05:21:35 +08:00
winmutex.h
hookman.cc
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-20 03:47:48 +08:00
$<$<CONFIG:MinSizeRel>:/MT>
$<$<CONFIG:Debug>:>
)
#STRING(REPLACE "/EHsc" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
2018-07-19 11:40:44 +08:00
target_link_libraries(vnrhost)
target_compile_definitions(vnrhost
PRIVATE
ITH_HAS_CRT
_CRT_NON_CONFORMING_SWPRINTFS
)
install(TARGETS vnrhost RUNTIME
DESTINATION .
CONFIGURATIONS Release
)