more on installer

This commit is contained in:
Martin Brodbeck 2018-08-07 13:17:30 +02:00
parent beb892765b
commit 8097abdc84

View file

@ -31,7 +31,6 @@ endif()
# CPack # CPack
INCLUDE(InstallRequiredSystemLibraries)
set(CPACK_PACKAGE_EXECUTABLES "kima2" "KIMA2") set(CPACK_PACKAGE_EXECUTABLES "kima2" "KIMA2")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ein kleines Kassenprogramm für Kindersachenmärkte") set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Ein kleines Kassenprogramm für Kindersachenmärkte")
@ -56,5 +55,11 @@ else(WIN32 AND NOT UNIX)
set(CPACK_SOURCE_STRIP_FILES "") set(CPACK_SOURCE_STRIP_FILES "")
endif (WIN32 AND NOT UNIX) endif (WIN32 AND NOT UNIX)
if( MINGW )
message( STATUS " Installing system-libraries: MinGW DLLs." )
get_filename_component( MINGW_PATH ${CMAKE_CXX_COMPILER} PATH )
set( CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS ${MINGW_PATH}/mingwm10.dll ${MINGW_PATH}/libgcc_s_dw2-1.dll ${MINGW_PATH}/libstdc++-6.dll )
endif( MINGW )
include(InstallRequiredSystemLibraries)
include(CPack) include(CPack)