In progress...

This commit is contained in:
Kolan Sh 2016-06-16 16:38:29 +03:00
parent a17e98ee1a
commit dd5bc0e6e6
2 changed files with 19 additions and 4 deletions

View File

@ -53,7 +53,6 @@ ExternalProject_Add (object-example
INSTALL_DIR bundle
)
INSTALL (DIRECTORY ${CMAKE_BINARY_DIR}/bundle DESTINATION "win32")

View File

@ -4,8 +4,24 @@ SET (WIN32_UNINSTALL_NAME "LAvBundl") # <= 8 symbols for the name
SET (CPACK_NSIS_MENU_LINKS "https://redmine.backbone.ws/projects/laview/wiki"
"Homepage for ${PROJECT_DESCRIPTION}")
SET (CPACK_PACKAGE_EXECUTABLES "..\\\\win32\\\\bundle\\\\bin\\\\laview-desktop-1;LAview Desktop")
SET (CPACK_NSIS_INSTALLED_ICON_NAME ..\\\\win32\\\\bundle\\\\bin\\\\laview-desktop-1.exe)
SET (CPACK_CREATE_DESKTOP_LINKS "..\\\\win32\\\\bundle\\\\bin\\\\laview-desktop-1")
INCLUDE (CPackDetectArch)
IF (ARCHITECTURE STREQUAL "amd64")
SET (ARCH 64)
ELSE ()
SET (ARCH 32)
ENDIF ()
SET (CPACK_PACKAGE_EXECUTABLES "..\\\\win${ARCH}\\\\bundle\\\\bin\\\\laview-desktop-1;LAview Desktop")
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")
FILE (MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bundle/bin)
FOREACH (libname libgio-2.0-0.dll libgmodule-2.0-0.dll libglib-2.0-0.dll)
EXECUTE_PROCESS (COMMAND ln -sf /mingw${ARCH}/bin/${libname} ${CMAKE_BINARY_DIR}/bundle/bin/${libname})
ENDFOREACH (libname)
INSTALL (DIRECTORY ${CMAKE_BINARY_DIR}/bundle DESTINATION "win${ARCH}")
INCLUDE (CPackCommonRules)