In progress...

This commit is contained in:
Kolan Sh 2016-06-18 18:15:43 +03:00
parent 0309153e20
commit 90bd187ff1
1 changed files with 8 additions and 3 deletions

View File

@ -15,9 +15,8 @@ SET (CPACK_PACKAGE_EXECUTABLES "..\\\\win${ARCH}\\\\bundle\\\\bin\\\\laview-desk
SET (CPACK_NSIS_INSTALLED_ICON_NAME ..\\\\win${ARCH}\\\\bundle\\\\bin\\\\laview-desktop-1.exe)
SET (CPACK_CREATE_DESKTOP_LINKS "..\\\\win${ARCH}\\\\bundle\\\\bin\\\\laview-desktop-1")
# required libraries
FILE (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bundle/bin)
FOREACH (libname
libatk-1.0-0.dll libbz2-1.dll libcairo-2.dll libcairo-gobject-2.dll libepoxy-0.dll
libexpat-1.dll libffi-6.dll libfontconfig-1.dll libfreetype-6.dll libgcc_s_seh-1.dll
@ -26,9 +25,15 @@ FOREACH (libname
libiconv-2.dll libintl-8.dll libpango-1.0-0.dll libpangocairo-1.0-0.dll libpangoft2-1.0-0.dll
libpangowin32-1.0-0.dll libpcre-1.dll libpixman-1-0.dll libpng16-16.dll libstdc++-6.dll
libwinpthread-1.dll zlib1.dll)
EXECUTE_PROCESS (COMMAND ln -sf /mingw${ARCH}/bin/${libname} ${CMAKE_BINARY_DIR}/bundle/bin/${libname})
EXECUTE_PROCESS (COMMAND cp /mingw${ARCH}/bin/${libname} ${CMAKE_BINARY_DIR}/bundle/bin)
ENDFOREACH (libname)
# required resources
FILE (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bundle/share/icons/Adwaita)
FOREACH (dirname 16x16 24x24)
EXECUTE_PROCESS (COMMAND cp -r /mingw${ARCH}/share/icons/Adwaita/${dirname} ${CMAKE_BINARY_DIR}/bundle/share/icons/Adwaita)
ENDFOREACH (dirname)
INSTALL (DIRECTORY ${CMAKE_BINARY_DIR}/bundle DESTINATION "win${ARCH}")
INCLUDE (CPackCommonRules)