# install read-only data files and default config files for LXDE-Qt
cmake_minimum_required(VERSION 2.6)
project(lxqt-common)

# additional cmake files
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

find_package(LXQT REQUIRED)
include(${LXQT_USE_FILE})

# graphics
install(DIRECTORY graphics DESTINATION share/lxqt/)

# startlxde-qt script
configure_file(startlxde-qt.in startlxde-qt @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/startlxde-qt DESTINATION bin)

# default config files
add_subdirectory(config)
add_subdirectory(autostart)

# xsession *.desktop file for display managers
add_subdirectory(xsession)

# themes
add_subdirectory(themes)

# install read-only data files and default config files for LXDE-Qt
cmake_minimum_required(VERSION 2.6)
project(lxqt-common)

# additional cmake files
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

find_package(LXQT REQUIRED)
include(${LXQT_USE_FILE})

# graphics
install(DIRECTORY graphics DESTINATION share/lxqt/)

# startlxde-qt script
configure_file(startlxde-qt.in startlxde-qt @ONLY)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/startlxde-qt DESTINATION bin)

# default config files
add_subdirectory(config)
add_subdirectory(autostart)

# xsession *.desktop file for display managers
add_subdirectory(xsession)

# themes
add_subdirectory(themes)

# building tarball with CPack -------------------------------------------------
include (InstallRequiredSystemLibraries)
set (CPACK_PACKAGE_VERSION_MAJOR ${LXQT_MAJOR_VERSION})
set (CPACK_PACKAGE_VERSION_MINOR ${LXQT_MINOR_VERSION})
set (CPACK_PACKAGE_VERSION_PATCH ${LXQT_PATCH_VERSION})
set (CPACK_GENERATOR TBZ2)
set (CPACK_SOURCE_GENERATOR TBZ2)
set (CPACK_SOURCE_IGNORE_FILES /build/;.gitignore;.*~;.git;.kdev4;temp)
include (CPack)

Add CPack rules for creating tarball
Add CPack rules for creating tarball
