Home | History | Annotate | Download | only in modules
      1 
      2 if (DBUS_INSTALL_SYSTEM_LIBS)
      3 	if (MINGW)
      4 		if (DBUS_USE_EXPAT)
      5 			# expat
      6 			install_files(/bin FILES ${LIBEXPAT_LIBRARIES})	
      7 		else (DBUS_USE_EXPAT)
      8 			# xml2
      9 			install_files(/bin FILES ${LIBXML2_LIBRARIES})	
     10 			install_files(/bin FILES ${LIBICONV_LIBRARIES})	
     11 		endif (DBUS_USE_EXPAT)
     12 	else (MINGW)
     13 		INCLUDE(InstallRequiredSystemLibraries)
     14 	endif (MINGW)
     15 endif (DBUS_INSTALL_SYSTEM_LIBS)
     16 
     17 SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "D-BUS For Windows")
     18 SET(CPACK_PACKAGE_VENDOR "D-BUS Windows Team")
     19 SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/../README")
     20 SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/../COPYING")
     21 # duplicated from VERSION
     22 SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
     23 SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
     24 SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
     25 #SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
     26 SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus")
     27 IF(WIN32 AND NOT UNIX)
     28   SET(CPACK_GENERATOR NSIS ZIP)     # can be NSIS, STGZ, TBZ2, TGZ, TZ and ZIP
     29   SET(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
     30   # There is a bug in NSI that does not handle full unix paths properly. Make
     31   # sure there is at least one set of four (4) backlasshes.
     32 # SET(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
     33   SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\dbus-launch.bat")
     34   SET(CPACK_NSIS_DISPLAY_NAME "D-Bus for Windows")
     35   SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\sourceforge.net/projects/windbus")
     36   SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\sourceforge.net/projects/windbus")
     37   SET(CPACK_NSIS_CONTACT "me (a] my-personal-home-page.com")
     38   SET(CPACK_NSIS_MODIFY_PATH ON)
     39 ELSE(WIN32 AND NOT UNIX)
     40   SET(CPACK_STRIP_FILES "bin/MyExecutable")
     41   SET(CPACK_SOURCE_STRIP_FILES "")
     42 ENDIF(WIN32 AND NOT UNIX)
     43 SET(CPACK_PACKAGE_EXECUTABLES "dbus-launch" "D-Bus Daemon")
     44 INCLUDE(CPack)
     45