Skip to content

Commit 0658134

Browse files
committed
CMake: Add FeatureSummary
1 parent 1ec431f commit 0658134

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
# Pick up our include directories from the parent context
2828
include_directories(${OPENSHOT_INCLUDE_DIRS})
2929

30+
####### Display summary of options/dependencies ######
31+
include(FeatureSummary)
32+
#set_property(GLOBAL APPEND PROPERTY FeatureSummary_PKG_TYPES BUILD)
33+
#find_package(FOO)
34+
#set_package_properties(FOO PROPERTIES TYPE BUILD)
35+
3036
################ OPTIONS ##################
3137
# Optional build settings for libopenshot
3238
OPTION(USE_SYSTEM_JSONCPP "Use system installed JsonCpp" OFF)
@@ -328,6 +334,12 @@ ENDIF (BLACKMAGIC_FOUND)
328334
############### INCLUDE SWIG BINDINGS ################
329335
add_subdirectory(bindings)
330336

337+
########### PRINT FEATURE SUMMARY ##############
338+
feature_summary(WHAT ALL
339+
INCLUDE_QUIET_PACKAGES
340+
DESCRIPTION "Build configuration:"
341+
VAR featuresText)
342+
message("\n${featuresText}")
331343

332344
############### INSTALL HEADERS & LIBRARY ################
333345
set(LIB_INSTALL_DIR lib${LIB_SUFFIX}) # determine correct lib folder

0 commit comments

Comments
 (0)