distromatic/CMakeLists.txt

27 lines
615 B
CMake

project(distromatic)
cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR)
set(LOCALEDIR "${CMAKE_INSTALL_PREFIX}/share/locale")
if (NOT SYSCONF_INSTALL_DIR)
set(SYSCONF_INSTALL_DIR "/etc")
endif()
file (STRINGS "VERSION" VERSION)
add_subdirectory(src)
add_subdirectory(po)
add_subdirectory(html)
install(
FILES distromatic.conf
DESTINATION ${SYSCONF_INSTALL_DIR}
)
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)