if (DBUS_INSTALL_SYSTEM_LIBS)
if (MINGW)
else (MINGW)
- INCLUDE(InstallRequiredSystemLibraries)
+ include(InstallRequiredSystemLibraries)
endif (MINGW)
install(FILES ${LIBEXPAT_LIBRARIES} DESTINATION ${CMAKE_INSTALL_BINDIR})
endif (DBUS_INSTALL_SYSTEM_LIBS)
-SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "D-BUS For Windows")
-SET(CPACK_PACKAGE_VENDOR "D-BUS Windows Team")
-SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
-SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "D-BUS For Windows")
+set(CPACK_PACKAGE_VENDOR "D-BUS Windows Team")
+set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README")
+set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING")
# duplicated from VERSION
-SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
-SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
-SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
+set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
+set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
+set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
#SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
-SET(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus")
-IF(WIN32 AND NOT UNIX)
- SET(CPACK_GENERATOR NSIS ZIP) # can be NSIS, STGZ, TBZ2, TGZ, TZ and ZIP
- SET(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
+set(CPACK_PACKAGE_INSTALL_DIRECTORY "dbus")
+if(WIN32 AND NOT UNIX)
+ set(CPACK_GENERATOR NSIS ZIP) # can be NSIS, STGZ, TBZ2, TGZ, TZ and ZIP
+ set(CPACK_NSIS_COMPRESSOR "/SOLID lzma")
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
# SET(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
- SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\dbus-launch.bat")
- SET(CPACK_NSIS_DISPLAY_NAME "D-Bus for Windows")
- SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\sourceforge.net/projects/windbus")
- SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\sourceforge.net/projects/windbus")
- SET(CPACK_NSIS_CONTACT "me@my-personal-home-page.com")
- SET(CPACK_NSIS_MODIFY_PATH ON)
-ELSE(WIN32 AND NOT UNIX)
- SET(CPACK_STRIP_FILES "bin/MyExecutable")
- SET(CPACK_SOURCE_STRIP_FILES "")
-ENDIF(WIN32 AND NOT UNIX)
-SET(CPACK_PACKAGE_EXECUTABLES "dbus-launch" "D-Bus Daemon")
-INCLUDE(CPack)
+ set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\dbus-launch.bat")
+ set(CPACK_NSIS_DISPLAY_NAME "D-Bus for Windows")
+ set(CPACK_NSIS_HELP_LINK "http:\\\\\\\\sourceforge.net/projects/windbus")
+ set(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\sourceforge.net/projects/windbus")
+ set(CPACK_NSIS_CONTACT "me@my-personal-home-page.com")
+ set(CPACK_NSIS_MODIFY_PATH ON)
+else(WIN32 AND NOT UNIX)
+ set(CPACK_STRIP_FILES "bin/MyExecutable")
+ set(CPACK_SOURCE_STRIP_FILES "")
+endif(WIN32 AND NOT UNIX)
+set(CPACK_PACKAGE_EXECUTABLES "dbus-launch" "D-Bus Daemon")
+include(CPack)
file(READ ${config} _configure_ac_raw)
# Convert file contents into a CMake list (where each element in the list
# is one line of the file)
- STRING(REGEX REPLACE ";" "\\\\;" _configure_ac "${_configure_ac_raw}")
- STRING(REGEX REPLACE "\n" ";" _configure_ac "${_configure_ac}")
+ string(REGEX REPLACE ";" "\\\\;" _configure_ac "${_configure_ac_raw}")
+ string(REGEX REPLACE "\n" ";" _configure_ac "${_configure_ac}")
endmacro()
# extracts version information from autoconf config file
file(READ ${configure_checks_file} configure_checks_file_raw)
file(READ ${config_h_in} _config_h_in_raw)
file(READ ${config_h_cmake} _config_h_cmake_raw)
- STRING(REGEX REPLACE ";" "\\\\;" _config_h_in "${_config_h_in_raw}")
- STRING(REGEX REPLACE "\n" ";" _config_h_in "${_config_h_in}")
+ string(REGEX REPLACE ";" "\\\\;" _config_h_in "${_config_h_in_raw}")
+ string(REGEX REPLACE "\n" ";" _config_h_in "${_config_h_in}")
foreach(line ${_config_h_in})
#message(STATUS ${line})
if(line MATCHES ".*HAVE_.*_H.*")
file(READ ${template} contents)
# Convert file contents into a CMake list (where each element in the list
# is one line of the file)
- STRING(REGEX REPLACE ";" "\\\\;" contents "${contents}")
- STRING(REGEX REPLACE "\n" ";" contents "${contents}")
+ string(REGEX REPLACE ";" "\\\\;" contents "${contents}")
+ string(REGEX REPLACE "\n" ";" contents "${contents}")
foreach(line contents)
message(STATUS ${line})
# find #undef lines