2020-06-18 13:55:52 +02:00
|
|
|
project(distromatic)
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR)
|
|
|
|
|
|
|
|
set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
|
|
|
|
|
2021-03-13 10:53:53 +01:00
|
|
|
if (NOT SYSCONF_INSTALL_DIR)
|
|
|
|
set(SYSCONF_INSTALL_DIR "/etc")
|
|
|
|
endif()
|
|
|
|
|
2020-06-18 15:14:52 +02:00
|
|
|
file (STRINGS "VERSION" VERSION)
|
|
|
|
|
2020-06-18 13:55:52 +02:00
|
|
|
add_subdirectory(src)
|
2020-06-18 15:14:52 +02:00
|
|
|
add_subdirectory(po)
|
|
|
|
add_subdirectory(html)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES distromatic.conf
|
|
|
|
DESTINATION ${SYSCONF_INSTALL_DIR}
|
|
|
|
)
|
2021-03-13 10:53:53 +01:00
|
|
|
|
|
|
|
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
|
|
|
|
set(CPACK_SOURCE_IGNORE_FILES "/build/;/.git/")
|
|
|
|
include(CPack)
|
|
|
|
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
|