1
2if (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)
15endif (DBUS_INSTALL_SYSTEM_LIBS)
16
17SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "D-BUS For Windows")
18SET(CPACK_PACKAGE_VENDOR "D-BUS Windows Team")
19SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/../README")
20SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/../COPYING")
21# duplicated from VERSION
22SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
23SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
24SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
25#SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
26SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus")
27IF(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@my-personal-home-page.com")
38  SET(CPACK_NSIS_MODIFY_PATH ON)
39ELSE(WIN32 AND NOT UNIX)
40  SET(CPACK_STRIP_FILES "bin/MyExecutable")
41  SET(CPACK_SOURCE_STRIP_FILES "")
42ENDIF(WIN32 AND NOT UNIX)
43SET(CPACK_PACKAGE_EXECUTABLES "dbus-launch" "D-Bus Daemon")
44INCLUDE(CPack)
45