Add windows DLL support

(with AVX2 flag removed currently)
This commit is contained in:
Bobby Martin
2019-03-27 09:52:00 -07:00
committed by Chang, Harry
parent 49592833a7
commit e395cd3166
7 changed files with 107 additions and 16 deletions

View File

@@ -16,7 +16,11 @@ if (BUILD_CHIMERA)
target_link_libraries(hscheck hs chimera pcre expressionutil)
endif()
else()
add_executable(hscheck ${hscheck_SOURCES})
if(WIN32 AND (BUILD_STATIC_AND_SHARED OR BUILD_SHARED_LIBS))
add_executable(hscheck ${hscheck_SOURCES} $<TARGET_OBJECTS:hs_compile_shared> $<TARGET_OBJECTS:hs_exec_shared>)
else()
add_executable(hscheck ${hscheck_SOURCES})
endif()
if(NOT WIN32)
target_link_libraries(hscheck hs expressionutil pthread)
else()