From 2a119fdf5e70a31411bd48467c0605e1eb3708f2 Mon Sep 17 00:00:00 2001 From: vscosta Date: Fri, 8 Apr 2016 01:29:10 -0700 Subject: [PATCH] handle DLLs needed for booting. --- utf8proc/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/utf8proc/CMakeLists.txt b/utf8proc/CMakeLists.txt index f3faf544f..3b45c6001 100644 --- a/utf8proc/CMakeLists.txt +++ b/utf8proc/CMakeLists.txt @@ -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 $) + +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})