changeset 22:cc87d1ed14a5

misc: add generation information
author David Demelier <markand@malikania.fr>
date Thu, 26 Apr 2018 17:19:58 +0200
parents 38d927bed5c3
children 2a32be5d151b
files CMakeLists.txt dmenu-background/CMakeLists.txt dmenu-mpc/CMakeLists.txt
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -27,3 +27,9 @@
 add_subdirectory(libdmenutools)
 add_subdirectory(dmenu-background)
 add_subdirectory(dmenu-mpc)
+
+message("")
+message("dmenutools configuration")
+message("    dmenu-background:  ${WITH_BACKGROUND_MSG}")
+message("    dmenu-mpc:         ${WITH_MPC_MSG}")
+message("")
--- a/dmenu-background/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/dmenu-background/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -19,3 +19,4 @@
 project(dmenu-background)
 add_executable(dmenu-background main.cpp)
 target_link_libraries(dmenu-background libdmenutools)
+set(WITH_BACKGROUND_MSG "Yes" CACHE "" INTERNAL FORCE)
--- a/dmenu-mpc/CMakeLists.txt	Thu Apr 26 17:15:30 2018 +0200
+++ b/dmenu-mpc/CMakeLists.txt	Thu Apr 26 17:19:58 2018 +0200
@@ -22,8 +22,9 @@
 pkg_check_modules(libmpdclient IMPORTED_TARGET libmpdclient)
 
 if (NOT libmpdclient_FOUND)
-    message("NOT building dmenu-mpc")
+    set(WITH_MPC_MSG "No (libmpdclient not found)" CACHE "" INTERNAL FORCE)
 else ()
+    set(WITH_MPC_MSG "Yes" CACHE "" INTERNAL FORCE)
     add_executable(dmenu-mpc main.cpp)
     target_link_libraries(dmenu-mpc libdmenutools PkgConfig::libmpdclient)
 endif ()