handle DLLs needed for booting.

This commit is contained in:
vscosta 2016-04-08 01:29:10 -07:00
parent 2f5386bd6f
commit 2a119fdf5e
1 changed files with 16 additions and 0 deletions

View File

@ -38,6 +38,22 @@ add_library (utf8proc SHARED
)
# copy DLL to yap main bin dir so that we can use yap
# during compilation
if (WIN32)
ADD_CUSTOM_target( setupUTF8)
SET (UTFPATH $<TARGET_FILE:utf8proc>)
add_custom_command(TARGET setupUTF8 POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${UTFPATH} ${CMAKE_BINARY_DIR}
)
ADD_DEPENDENCIES(libYap setupUTF8)
endif(WIN32)
install(TARGETS utf8proc
LIBRARY DESTINATION ${libdir}
ARCHIVE DESTINATION ${libdir})