Skip to content

Commit

Permalink
CMake: generate a summary of the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 18, 2025
1 parent 0327ea6 commit 6d4209a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ project(ebml VERSION 2.0.0)

include(CMakeDependentOption)

include( FeatureSummary )

option(DISABLE_PKGCONFIG "Disable PkgConfig module generation" OFF)
add_feature_info(DISABLE_PKGCONFIG DISABLE_PKGCONFIG "doesn't generate pkgconfig config file")

option(DISABLE_CMAKE_CONFIG "Disable CMake package config module generation" OFF)
add_feature_info(DISABLE_CMAKE_CONFIG DISABLE_CMAKE_CONFIG "doesn't generate CMake config files")

cmake_dependent_option(BUILD_SHARED_LIBS "Build libebml as a shared library (except Windows)" OFF "NOT WIN32" OFF)
add_feature_info(BUILD_SHARED_LIBS BUILD_SHARED_LIBS "build as a dynamic library")

option(BUILD_TESTING "Build tests" OFF)
add_feature_info(BUILD_TESTING BUILD_TESTING "build test code")

option(DEV_MODE "Developer mode with extra compilation checks" OFF)
add_feature_info(DEV_MODE DEV_MODE "extra compilation checks on developer mode")

include(GNUInstallDirs)

Expand Down Expand Up @@ -207,3 +218,5 @@ if(NOT DISABLE_CMAKE_CONFIG)
${CMAKE_CURRENT_BINARY_DIR}/EBMLConfigVersion.cmake
DESTINATION ${CMAKE_INSTALL_PACKAGEDIR})
endif()

feature_summary(DESCRIPTION "libebml build configuration" WHAT ALL)

0 comments on commit 6d4209a

Please sign in to comment.