# Minimum required CMake version.
cmake_minimum_required (VERSION 3.2.0)

# Define the LibDisir project
project (libdisir VERSION 0.1.0 LANGUAGES C CXX)

include (CMakePackageConfigHelpers)
include (GNUInstallDirs)

add_subdirectory (lib)
add_subdirectory (plugins)
add_subdirectory (doc)
add_subdirectory (cli)

enable_testing ()
add_subdirectory (test)

# Minimum required CMake version.
cmake_minimum_required (VERSION 3.2.0)

# Define the LibDisir project
project (disir VERSION 0.1.0 LANGUAGES C CXX)

include (CMakePackageConfigHelpers)
include (GNUInstallDirs)

add_custom_target (dist ALL
  COMMAND git archive HEAD
    -o ${PROJECT_NAME}-${PROJECT_VERSION}.tar.gz
    --prefix=${PROJECT_NAME}-${PROJECT_VERSION}/
  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
  COMMENT "Creating repository tar.gz"
)

add_subdirectory (lib)
add_subdirectory (plugins)
add_subdirectory (doc)
add_subdirectory (cli)

enable_testing ()
add_subdirectory (test)

Update project name to disir, add dist target
build: Update project name to disir, add dist target
